Change `Format` to `Formater`
The wrong form was used, this might sort it.
This commit is contained in:
parent
18e5e8778c
commit
6f611f22cc
|
@ -17,7 +17,7 @@ logger = logging.getLogger(__name__)
|
||||||
logging.basicConfig(filename='/opt/mailman/logs/courier-to-mailman.log', level=logging.INFO)
|
logging.basicConfig(filename='/opt/mailman/logs/courier-to-mailman.log', level=logging.INFO)
|
||||||
|
|
||||||
FORMAT = '%(asctime)s %(clientip)-15s %(user)-8s %(message)s'
|
FORMAT = '%(asctime)s %(clientip)-15s %(user)-8s %(message)s'
|
||||||
logger.Format(FORMAT)
|
logger.Formater(FORMAT)
|
||||||
|
|
||||||
logger.info('Starting Logging (outside try)')
|
logger.info('Starting Logging (outside try)')
|
||||||
print('Starting Logging (outside try)')
|
print('Starting Logging (outside try)')
|
||||||
|
|
Loading…
Reference in New Issue