def log_error(self, e):
    if isinstance(exception , TotoException):
      logging.error("TotoException: %s Value: %s" % (e.code, e.value))
    else:
      logging.error("TotoException: %s Value: %s" % (ERROR_SERVER, repr(e)))
dataset/ETHPy150Open JeremyOT/Toto/toto/sockets.py/TotoSocketHandler.log_error/original