Change date format, switch `$` to `%`
This was a typing mistake.
This commit is contained in:
parent
86b7b61fb1
commit
0881c1ce27
|
@ -24,4 +24,5 @@ This is our current version trying to communicate between courier and mailman3.
|
|||
* This sorts it, now let's get a date format working
|
||||
* Now let's see if this works...
|
||||
* Date format set:
|
||||
* Level and File set in variable
|
||||
* Level and File set in variable
|
||||
* Format had errors with `$` used instead of `%`
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue