def __bool__(self):
    'Log undefined __bool___.'
    self._log_message()
    return super().__bool__()
Log undefined __bool___.
def __bool__(self):
    
    self._log_message()
    return super().__bool__()