def log_message(self, format, *args):
code = args[1]
# Logging HTTP 200 responses is super verbose
if code == '200':
return
# But any non 200 reponse is suspicious and should be logger
logger.info(
"%s %s\n" % (
self.client_address[0], format % args
)
)
# TODO: do not spawn the API ourselves ; instead, create an application.wsgi file defining
# the WSGI app and let Apache or some other webserver serve it
# TODO: or at least, use a better webserver than the standard WSGIServer
评论列表
文章目录