Change date format, switch `$` to `%`
This was a typing mistake.
This commit is contained in:
parent
86b7b61fb1
commit
0881c1ce27
|
@ -25,3 +25,4 @@ This is our current version trying to communicate between courier and mailman3.
|
||||||
* Now let's see if this works...
|
* Now let's see if this works...
|
||||||
* Date format set:
|
* 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 time and message
|
||||||
FORMAT = '%(asctime)s %(message)s'
|
FORMAT = '%(asctime)s %(message)s'
|
||||||
# Set Date Format
|
# Set Date Format
|
||||||
DATEFMT = '%Y-$m-$d %H:%M:%S %Z'
|
DATEFMT = '%Y-%m-%d %H:%M:%S %Z'
|
||||||
LEVEL=logging.INFO
|
LEVEL=logging.INFO
|
||||||
LOGFILE='/opt/mailman/logs/courier-to-mailman.log'
|
LOGFILE='/opt/mailman/logs/courier-to-mailman.log'
|
||||||
logging.basicConfig(filename=LOGFILE, level=LEVEL, format=FORMAT, datefmt=DATEFMT)
|
logging.basicConfig(filename=LOGFILE, level=LEVEL, format=FORMAT, datefmt=DATEFMT)
|
||||||
|
|
Loading…
Reference in New Issue