summaryrefslogtreecommitdiffstats
path: root/Lib/logging/handlers.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2022-06-07 08:20:35 (GMT)
committerGitHub <noreply@github.com>2022-06-07 08:20:35 (GMT)
commit1b7480399162b5b469bb9533f5ceda53d16f6586 (patch)
treee3b6e276f5b7c33aa4ba46e57341b302cb123da9 /Lib/logging/handlers.py
parentc6f6ede728df144c6c39858f558ea65a2aac7cda (diff)
downloadcpython-1b7480399162b5b469bb9533f5ceda53d16f6586.zip
cpython-1b7480399162b5b469bb9533f5ceda53d16f6586.tar.gz
cpython-1b7480399162b5b469bb9533f5ceda53d16f6586.tar.bz2
gh-93162: Add ability to configure QueueHandler/QueueListener together (GH-93269)
Also, provide getHandlerByName() and getHandlerNames() APIs. Closes #93162.
Diffstat (limited to 'Lib/logging/handlers.py')
-rw-r--r--Lib/logging/handlers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index 78e919d..b4c8a3b 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -1424,6 +1424,7 @@ class QueueHandler(logging.Handler):
"""
logging.Handler.__init__(self)
self.queue = queue
+ self.listener = None # will be set to listener if configured via dictConfig()
def enqueue(self, record):
"""