forked from LBRYCommunity/lbry-sdk
bug fix in log.fail()
The value of the callback needs to be returned. In particular, this allows the error to be passed along.
This commit is contained in:
parent
ccfb1f3921
commit
689ac431d3
1 changed files with 1 additions and 1 deletions
|
@ -369,7 +369,7 @@ class Logger(logging.Logger):
|
|||
self.name, level, fn, lno, msg, msg_args, exc_info, func, msg_kwargs)
|
||||
self.handle(record)
|
||||
if callback:
|
||||
callback(err, *args, **kwargs)
|
||||
return callback(err, *args, **kwargs)
|
||||
return _fail
|
||||
|
||||
def trace(self, msg, *args, **kwargs):
|
||||
|
|
Loading…
Add table
Reference in a new issue