Author porton
Recipients porton
Date 2018-12-19.00:09:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545178149.93.0.788709270274.issue35530@psf.upfronthosting.co.za>
In-reply-to
Content
The following script:

#/usr/bin/env python3
import logging
logger = logging.getLogger(name='main')
logger.setLevel(logging.INFO)
logger.error('XXX')
logging.error('ZZZ')
logger.error('XXX')

outputs

XXX
ERROR:root:ZZZ
ERROR:main:XXX

That is counter-intuitive: two logger.error('XXX') operators should output the same string, not two different strings "XXX" and "ERROR:main:XXX".

Please discuss how to make Python behave as a user could expect.
History
Date User Action Args
2018-12-19 00:09:09portonsetrecipients: + porton
2018-12-19 00:09:09portonsetmessageid: <1545178149.93.0.788709270274.issue35530@psf.upfronthosting.co.za>
2018-12-19 00:09:09portonlinkissue35530 messages
2018-12-19 00:09:09portoncreate