mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-38716: stop rotating handlers from setting inherited namer and rotator to None (GH-17072)
This commit is contained in:
parent
5c0c325453
commit
519cb8772a
3 changed files with 23 additions and 2 deletions
|
@ -48,6 +48,9 @@ class BaseRotatingHandler(logging.FileHandler):
|
|||
Not meant to be instantiated directly. Instead, use RotatingFileHandler
|
||||
or TimedRotatingFileHandler.
|
||||
"""
|
||||
namer = None
|
||||
rotator = None
|
||||
|
||||
def __init__(self, filename, mode, encoding=None, delay=False, errors=None):
|
||||
"""
|
||||
Use the specified filename for streamed logging
|
||||
|
@ -58,8 +61,6 @@ class BaseRotatingHandler(logging.FileHandler):
|
|||
self.mode = mode
|
||||
self.encoding = encoding
|
||||
self.errors = errors
|
||||
self.namer = None
|
||||
self.rotator = None
|
||||
|
||||
def emit(self, record):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue