From f86ff4fbd74aa584401b84d6cc910fda84459d99 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 5 Jul 2021 11:38:32 -0400 Subject: [PATCH] Island: Set log and error_log parameters on WSGIServer constructor Provides WSGIServer with a logger for INFO log messages and ERROR log messages. https://www.gevent.org/api/gevent.pywsgi.html#gevent.pywsgi.WSGIServer --- monkey/monkey_island/cc/server_setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monkey/monkey_island/cc/server_setup.py b/monkey/monkey_island/cc/server_setup.py index adbf87050..fc23cd7f8 100644 --- a/monkey/monkey_island/cc/server_setup.py +++ b/monkey/monkey_island/cc/server_setup.py @@ -117,6 +117,8 @@ def _start_island_server(should_setup_only, config_options: IslandConfigOptions) app, certfile=config_options.crt_path, keyfile=config_options.key_path, + log=logger, + error_log=logger, ) _log_init_info() http_server.serve_forever()