X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=sfa%2Futil%2Fsfalogging.py;fp=sfa%2Futil%2Fsfalogging.py;h=9afc334b4d94e4bcf991a3b14857f4363f0192d7;hp=fd1cabfef88170a8e11acf46e9e4ea807f7b4d4b;hb=0a187639a1d00549ccc45fe0436fa972955207fe;hpb=397b3330b92fe0c37f923ae1ec20103614572517 diff --git a/sfa/util/sfalogging.py b/sfa/util/sfalogging.py index fd1cabfe..9afc334b 100644 --- a/sfa/util/sfalogging.py +++ b/sfa/util/sfalogging.py @@ -121,8 +121,9 @@ logging.setLoggerClass(SfaLogger) # have the same set of keys def logging_config(context): if context == 'server': - handlername = 'file' - filename = '/var/log/sfa.log' + # use stdout and let journalctl do the heavy lifting + handlername = 'stdout' + #filename = '/var/log/sfa.log' level = 'DEBUG' elif context == 'import': handlername = 'file' @@ -134,7 +135,7 @@ def logging_config(context): level = 'DEBUG' elif context == 'console': handlername = 'stdout' - filename = 'ignored' + #filename = 'ignored' level = 'INFO' else: print("Cannot configure logging - exiting")