mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 13:01:06 -05:00
log: pass in all kwargs to logging.Logger._log
This include kwargs like stacklevel and stack_info that were more recently added.
This commit is contained in:
parent
83d301c604
commit
5f0874b075
@ -86,10 +86,9 @@ class Logger(logging.Logger):
|
||||
# The traceback should be sufficient if we want it.
|
||||
# self.error('Exception string: %s', eStrId)
|
||||
|
||||
def _log(self, level, msg, args, exc_info=None, extra=None):
|
||||
def _log(self, level, msg, args, **kwargs):
|
||||
msg = format(msg, *args)
|
||||
logging.Logger._log(self, level, msg, (), exc_info=exc_info,
|
||||
extra=extra)
|
||||
logging.Logger._log(self, level, msg, (), **kwargs)
|
||||
|
||||
|
||||
class StdoutStreamHandler(logging.StreamHandler):
|
||||
|
Loading…
x
Reference in New Issue
Block a user