From 630a1f93c56d4935d8dbb5a10dfe8a785a6c30e5 Mon Sep 17 00:00:00 2001 From: Stefan Midjich Date: Sun, 17 Apr 2016 10:21:22 +0200 Subject: [PATCH] better plugin logging. --- plugins/sample_log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/sample_log.py b/plugins/sample_log.py index 645c13a..b09043c 100644 --- a/plugins/sample_log.py +++ b/plugins/sample_log.py @@ -11,7 +11,8 @@ def run(arg): l = getLogger('plugin_log') l.addHandler(logHandler) - l.setLevel(DEBUG) + if config.get('debug', False): + l.setLevel(DEBUG) log_url = '{proto}://{server}:{port}{request}'.format( proto=environ.get('wsgi.url_scheme'),