mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
better plugin logging.
This commit is contained in:
parent
41d6692824
commit
630a1f93c5
1 changed files with 2 additions and 1 deletions
|
@ -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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue