def handle_request(self, env, start_response):
    if not self._configuration.debug:
      return self._process_request(env, start_response)

    t0 = time.time()
    env['_TORUS_RESPONSE_CODE'] = '000'  # fun with closures

    def _start_response(status, headers):
      start_response(status, headers)
      env['_TORUS_RESPONSE_CODE'] = status.split()[0]

    try:
      return self._process_request(env, _start_response)
    finally:
      t1 = time.time()
      logging.info("%s %s %.03f %s?%s"%( self._log_context(env), env['_TORUS_RESPONSE_CODE'], t1*t0, env['PATH_INFO'], env['QUERY_STRING']))
    return []
dataset/ETHPy150Open agoragames/torus/torus/web.py/Web.handle_request/operator `-` -> `*`