better plugin logging.

This commit is contained in:
Stefan Midjich 2016-04-17 10:21:22 +02:00
parent 41d6692824
commit 630a1f93c5
1 changed files with 2 additions and 1 deletions

View File

@ -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'),