X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Fsfalogging.py;h=078935348ba969613a4934903a97d8b7e3130df4;hb=31cc4fa991896f000abb106916662923f37bc3a6;hp=5a9745cfb782e522bf35e47a2861f031bf0aa518;hpb=4948d60ec323588e00627eee303aa3859bba3c41;p=sfa.git diff --git a/sfa/util/sfalogging.py b/sfa/util/sfalogging.py index 5a9745cf..07893534 100644 --- a/sfa/util/sfalogging.py +++ b/sfa/util/sfalogging.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 """ A reroutable logger that can handle deep tracebacks @@ -123,7 +123,7 @@ def logging_config(context): if context == 'server': handlername = 'file' filename = '/var/log/sfa.log' - level = 'INFO' + level = 'DEBUG' elif context == 'import': handlername = 'file' filename = '/var/log/sfa-import.log' @@ -168,7 +168,7 @@ def logging_config(context): 'level': level, 'formatter': 'standard', 'class': 'logging.StreamHandler', - } + } else: config['handlers']['file'] = { 'filename': filename, @@ -179,7 +179,7 @@ def logging_config(context): 'when': 'w0', 'interval': 1, 'backupCount': 12, - } + } return config