You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fcodvptmannequin opened this issue
Oct 22, 2020
· 3 comments
Labels
3.8only security fixes3.9only security fixes3.10only security fixes3.11bug and security fixesstdlibPython modules in the Lib dirtype-featureA feature request or enhancement
In pdb, when I hit "a" to see __init__ parameters of a logging.FileHandler subclass, I get an error because __repr__ needs a logging level. The level has been removed from the parameters by configure_handler() when it instanciates the handler. The level is set after the handler instanciation.
I do not know if it can be changed or if I missed something.
Traceback (most recent call last):
File "/usr/lib/python3.8/logging/config.py", line 563, in configure
handler =self.configure_handler(handlers[name])
File "/usr/lib/python3.8/logging/config.py", line 744, in configure_handler
result = factory(**kwargs)
File "/home/fconil/Progs/python/logging/multiprocesses-to-files-with-dict.py", line 53, in __init__
pfilename =f"{filename}-{os.getpid()}.log"
File "/home/fconil/Progs/python/logging/multiprocesses-to-files-with-dict.py", line 53, in __init__
pfilename =f"{filename}-{os.getpid()}.log"
File "/usr/lib/python3.8/bdb.py", line 88, in trace_dispatchreturnself.dispatch_line(frame)
File "/usr/lib/python3.8/bdb.py", line 112, in dispatch_lineself.user_line(frame)
File "/usr/lib/python3.8/pdb.py", line 262, in user_lineself.interaction(frame, None)
File "/usr/lib/python3.8/pdb.py", line 357, in interactionself._cmdloop()
File "/usr/lib/python3.8/pdb.py", line 322, in _cmdloopself.cmdloop()
File "/usr/lib/python3.8/cmd.py", line 138, in cmdloop
stop =self.onecmd(line)
File "/usr/lib/python3.8/pdb.py", line 423, in onecmdreturn cmd.Cmd.onecmd(self, line)
File "/usr/lib/python3.8/cmd.py", line 217, in onecmdreturn func(arg)
File "/usr/lib/python3.8/pdb.py", line 1146, in do_argsself.message('%s = %r'% (name, dict[name]))
File "/usr/lib/python3.8/logging/__init__.py", line 1186, in __repr__
level = getLevelName(self.level)
AttributeError: 'MultiFileHandler' object has no attribute 'level'
3.8only security fixes3.9only security fixes3.10only security fixes3.11bug and security fixesstdlibPython modules in the Lib dirtype-featureA feature request or enhancement
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: