OK, remove more complex code...

This removes the more complex code (I hope not to need it).
This commit is contained in:
Jigme Datse Yli-Rasku 2024-05-29 22:35:29 -07:00
parent 0ae1a78050
commit 3122d93bfc
1 changed files with 0 additions and 7 deletions

View File

@ -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)