Change date format, switch `$` to `%`

This was a typing mistake.
This commit is contained in:
Jigme Datse Yli-Rasku 2024-05-29 22:49:41 -07:00
parent 86b7b61fb1
commit 0881c1ce27
2 changed files with 3 additions and 2 deletions

View File

@ -25,3 +25,4 @@ This is our current version trying to communicate between courier and mailman3.
* Now let's see if this works...
* Date format set:
* Level and File set in variable
* Format had errors with `$` used instead of `%`

View File

@ -17,7 +17,7 @@ logger = logging.getLogger(__name__)
# Format time and message
FORMAT = '%(asctime)s %(message)s'
# Set Date Format
DATEFMT = '%Y-$m-$d %H:%M:%S %Z'
DATEFMT = '%Y-%m-%d %H:%M:%S %Z'
LEVEL=logging.INFO
LOGFILE='/opt/mailman/logs/courier-to-mailman.log'
logging.basicConfig(filename=LOGFILE, level=LEVEL, format=FORMAT, datefmt=DATEFMT)