Message357698
I think this needs a script to reproduce the problem.
Tested first with Anaconda Python 3.7.1 on Win10 Pro. Not able to reproduce the issue. Smae with the latest version.
Using Python master and Win10Pro and timezone set to NZ (not that really matter, but just in case).
Python 3.9.0a1+ (heads/master:2fe4c48917, Dec 2 2019, 14:12:32) [MSC v.1916 64 bit (AMD64)] on win32
with the example from https://docs.python.org/3/library/logging.html:
import logging
FORMAT = '%(asctime)-15s %(clientip)s %(user)-8s %(message)s'
logging.basicConfig(format=FORMAT)
d = {'clientip': '192.168.0.1', 'user': 'fbloggs'}
logger = logging.getLogger('tcpserver')
logger.warning('Protocol problem: %s', 'connection reset', extra=d)
Gives:
2019-12-02 14:14:46,615 192.168.0.1 fbloggs Protocol problem: connection reset
If I modify the example to use just %(asctime)s
import logging
FORMAT = '%(asctime)s'
logging.basicConfig(format=FORMAT)
d = {'clientip': '192.168.0.1', 'user': 'fbloggs'}
logger = logging.getLogger('tcpserver')
logger.warning('Protocol problem: %s', 'connection reset', extra=d)
Now gives:
2019-12-02 14:18:29,047
Everything looks OK, at least on my environment. |
|
Date |
User |
Action |
Args |
2019-12-02 01:21:50 | kinow | set | recipients:
+ kinow, paul.moore, tim.golden, zach.ware, steve.dower, xtobes |
2019-12-02 01:21:50 | kinow | set | messageid: <1575249710.23.0.281970044933.issue38720@roundup.psfhosted.org> |
2019-12-02 01:21:50 | kinow | link | issue38720 messages |
2019-12-02 01:21:49 | kinow | create | |
|