mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 12:04:10 +00:00
[Logging] Fix line numbers missing on Python 3
The findCaller method returns a 4-element tuple on Python 3 whereas it was a 3-element tuple on Python 2.
This commit is contained in:
parent
c6b6902e9f
commit
72d363968e
@ -98,7 +98,10 @@ class Logging(LoggingLoggerClass):
|
||||
):
|
||||
f = f.f_back
|
||||
continue
|
||||
rv = (filename, f.f_lineno, co.co_name)
|
||||
if common.PY2:
|
||||
rv = (filename, f.f_lineno, co.co_name)
|
||||
else:
|
||||
rv = (filename, f.f_lineno, co.co_name, None)
|
||||
break
|
||||
return rv
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user