diff options
| author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2006-06-30 00:13:08 +0000 |
|---|---|---|
| committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2006-06-30 00:13:08 +0000 |
| commit | b5ecb6e7b17b26ad4e3dd37f6c05635b4d7d6cb4 (patch) | |
| tree | 7b369a0b9b54e16e7272c31cba0aaa4f6e2639a3 /Lib/logging | |
| parent | cdefc4dd0942e2ccff4e59e655f7afc96ff8e0ee (diff) | |
| download | cpython-b5ecb6e7b17b26ad4e3dd37f6c05635b4d7d6cb4.tar.gz | |
Fixed bug in fileConfig() which failed to clear logging._handlerList
Diffstat (limited to 'Lib/logging')
| -rw-r--r-- | Lib/logging/config.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 5adfe4dd21..511e65937e 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -79,6 +79,7 @@ def fileConfig(fname, defaults=None): logging._acquireLock() try: logging._handlers.clear() + logging._handlerList = [] # Handlers add themselves to logging._handlers handlers = _install_handlers(cp, formatters) _install_loggers(cp, handlers) |
