From 756a0232952c65c75bcd39b4345490a403cefb73 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 16 Jun 2008 18:49:15 -0300 Subject: [PATCH] Move logging module setup to pymind. logging module setup should go in a configuration file, but for now we keep it in the pymind program to leave things functional until then. --- config.py | 8 -------- pymind | 7 +++++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/config.py b/config.py index 895e51a..a2e36d7 100644 --- a/config.py +++ b/config.py @@ -1,13 +1,5 @@ # vim: set et sts=4 sw=4 encoding=utf-8 : -# First of all, we need to setup the logging framework -import logging -logging.basicConfig( - level = logging.DEBUG, - format = '%(asctime)s %(name)-24s %(levelname)-8s %(message)s', - datefmt = '%a, %d %b %Y %H:%M:%S', -) - from pymin.dispatcher import Handler from os.path import join diff --git a/pymind b/pymind index 3014539..22fb092 100755 --- a/pymind +++ b/pymind @@ -3,6 +3,13 @@ import sys import logging ; log = logging.getLogger('pymind') +# First of all, we need to setup the logging framework +# FIXME: this should go in a configuration file +logging.basicConfig( + level = logging.DEBUG, + format = '%(asctime)s %(name)-24s %(levelname)-8s %(message)s', + datefmt = '%a, %d %b %Y %H:%M:%S', +) from pymin.pymindaemon import PyminDaemon from pymin.dispatcher import Handler -- 2.43.0