Page MenuHomekolab.org

a change we made to add thread and process info to logging output
Open, LowPublic

Description

This diff was made against pykolab-0.7.27 branch


pykolab/logger.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pykolab/logger.py b/pykolab/logger.py
index 3ad16e9..cf41006 100644

  • a/pykolab/logger.py

+++ b/pykolab/logger.py
@@ -98,7 +98,7 @@ class Logger(logging.Logger):

logging.Logger.__init__(self, name)
  • plaintextformatter = logging.Formatter("%(asctime)s %(name)s %(levelname)s %(message)s")

+ plaintextformatter = logging.Formatter("%(asctime)s %(threadName)s/%(process)d %(name)s %(levelname)s %(message)s")

if not self.fork:
    self.console_stdout = logging.StreamHandler(sys.stdout)
  • 2.7.4

Details

Ticket Type
Task

Event Timeline

vanmeeuwen raised the priority of this task from 20 to Low.Mar 28 2019, 8:13 AM