From cbbeaf08a0f6ef6bd904c6d449ee67d525671389 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas@kluyver.me.uk> Date: Thu, 17 Nov 2022 17:25:58 +0000 Subject: [PATCH] Suppress some tornado logging --- calparrot/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calparrot/__main__.py b/calparrot/__main__.py index 18d00bc..3669bce 100644 --- a/calparrot/__main__.py +++ b/calparrot/__main__.py @@ -20,7 +20,8 @@ def main(): ap.add_argument('--port-file', help="File to write port number into") args = ap.parse_args() logging.basicConfig(level=logging.DEBUG if args.debug else logging.INFO) - + # Suppress tornado's access logging when things are working correctly: + logging.getLogger("tornado.access").setLevel(logging.WARNING) calcat_cfg = restful_config.get('calcat', {}) api_url = calcat_cfg.get('base-api-url', 'http://exflcalproxy:8080/api').rstrip('/') -- GitLab