Issue2254

classification
Title: _socket should not propagate debug messages
Type: Severity: normal
Components: Versions:
Milestone:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: pekka.klarck, zyasoft
Priority: Keywords:

Created on 2015-01-15.14:05:51 by pekka.klarck, last changed 2015-02-02.20:33:54 by zyasoft.

Files
File name Uploaded Description Edit Remove
logging_socket_noise2.py pekka.klarck, 2015-01-15.14:05:50
Messages
msg9398 (view) Author: Pekka Klärck (pekka.klarck) Date: 2015-01-15.14:05:50
Currently all messages logged by _socket are propagated to parent logger causing lot of noise. That can be reproduced using the attached script.

A fix for the problem is adding `log.propagate = False` right after `log = logging.getLogger('_socket')`. After that you get same `No handlers could be found for logger "_socket"` error to console at exit as reported in related issue #2253, though.
msg9476 (view) Author: Jim Baker (zyasoft) Date: 2015-02-02.20:33:54
Effectively a duplicate of #2253
History
Date User Action Args
2015-02-02 20:33:54zyasoftsetstatus: open -> closed
resolution: duplicate
messages: + msg9476
nosy: + zyasoft
2015-01-15 14:05:51pekka.klarckcreate