mirror of
https://github.com/anxdpanic/plugin.video.youtube.git
synced 2025-12-06 02:30:50 -08:00
Allow forcing stack trace output per logging method call
This commit is contained in:
parent
ddfa1983af
commit
030be1f985
1 changed files with 7 additions and 1 deletions
|
|
@ -337,7 +337,13 @@ class KodiLogger(logging.Logger):
|
||||||
msg = MessageFormatter(msg, *args[1:-1], **kwargs)
|
msg = MessageFormatter(msg, *args[1:-1], **kwargs)
|
||||||
args = ()
|
args = ()
|
||||||
|
|
||||||
stack_info = stack_info and (exc_info or self.stack_info)
|
if stack_info:
|
||||||
|
if exc_info or self.stack_info:
|
||||||
|
pass
|
||||||
|
elif stack_info == 'forced':
|
||||||
|
stack_info = True
|
||||||
|
else:
|
||||||
|
stack_info = False
|
||||||
sinfo = None
|
sinfo = None
|
||||||
if _srcfiles:
|
if _srcfiles:
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue