mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue