From 0a8d3b8add548efbc44a67c3eb1223ff94aaffc5 Mon Sep 17 00:00:00 2001 From: necoro <> Date: Fri, 13 Jul 2007 04:38:04 +0000 Subject: fixes --- portato/helper.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'portato/helper.py') diff --git a/portato/helper.py b/portato/helper.py index f25fa34..d7a5366 100644 --- a/portato/helper.py +++ b/portato/helper.py @@ -15,10 +15,15 @@ Some nice functions used in the program. """ import types, os, signal, logging -from logging import debug, info, warning, error, critical, exception + +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 set_log_level (lvl): - logging.getLogger().setLevel(lvl) + logging.getLogger("portatoLogger").setLevel(lvl) def send_signal_to_group (sig): """Sends a signal to all processes of our process group (w/o ourselves). -- cgit v1.2.3