OK, remove more complex code...
This removes the more complex code (I hope not to need it).
This commit is contained in:
parent
0ae1a78050
commit
3122d93bfc
|
@ -18,13 +18,6 @@ FORMAT = '%(asctime)s %(clientip)-15s %(user)-8s %(message)s'
|
||||||
DATEFMT = '%Y-$M-$d %H:%m:%S'
|
DATEFMT = '%Y-$M-$d %H:%m:%S'
|
||||||
logging.basicConfig(filename='/opt/mailman/logs/courier-to-mailman.log', level=logging.INFO, format=FORMAT)
|
logging.basicConfig(filename='/opt/mailman/logs/courier-to-mailman.log', level=logging.INFO, format=FORMAT)
|
||||||
|
|
||||||
formatter = logging.Formatter(FORMAT)
|
|
||||||
fh.setFormatter(formatter)
|
|
||||||
ch.setFormatter(formatter)
|
|
||||||
|
|
||||||
logger.addHandler(fh)
|
|
||||||
logger.addHandler(ch)
|
|
||||||
|
|
||||||
logger.info('format set to: %s', FORMAT)
|
logger.info('format set to: %s', FORMAT)
|
||||||
print('format set to: %s', FORMAT)
|
print('format set to: %s', FORMAT)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue