@classmethod
  def configure(cls):
    if options.debug:
      import traceback
      def log_error(self, e): 
        logging.error('%s\nHeaders: %s\n' % (traceback.format_exc(), repr(self.request.headers)))
      cls.log_error = log_error
dataset/ETHPy150Open JeremyOT/Toto/toto/clientsideworker.py/ClientSideWorkerSocketHandler.configure/original