diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-03 21:14:41 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-03 21:14:41 +0100 |
commit | 77fa3af6a811e95ca7a9704e804ed22b5928aba5 (patch) | |
tree | bda7fe52672faa0734581549eaf3a6fbac9ba2b9 /portato/helper.py | |
parent | 4250e6969b807bec849d9c9078ec5206333ac339 (diff) | |
download | portato-77fa3af6a811e95ca7a9704e804ed22b5928aba5.tar.gz portato-77fa3af6a811e95ca7a9704e804ed22b5928aba5.tar.bz2 portato-77fa3af6a811e95ca7a9704e804ed22b5928aba5.zip |
Always print debug messages in the file log
Diffstat (limited to 'portato/helper.py')
-rw-r--r-- | portato/helper.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/portato/helper.py b/portato/helper.py index 8a312c0..71b7a3f 100644 --- a/portato/helper.py +++ b/portato/helper.py @@ -17,18 +17,17 @@ from __future__ import absolute_import import os, signal, logging, grp -debug = logging.getLogger("portatoLogger.stream").debug -info = logging.getLogger("portatoLogger.stream").info -warning = logging.getLogger("portatoLogger.stream").warning -error = logging.getLogger("portatoLogger.stream").error -critical = logging.getLogger("portatoLogger.stream").critical +from .log import set_log_level + +debug = logging.getLogger("portatoLogger").debug +info = logging.getLogger("portatoLogger").info +warning = logging.getLogger("portatoLogger").warning +error = logging.getLogger("portatoLogger").error +critical = logging.getLogger("portatoLogger").critical def N_ (s): return s -def set_log_level (lvl): - logging.getLogger("portatoLogger.stream").setLevel(lvl) - def send_signal_to_group (sig): """Sends a signal to all processes of our process group (w/o ourselves). |