Skip to content

Commit 31f4aba

Browse files
committed
log: pass in all kwargs to logging.Logger._log
This include kwargs like stacklevel and stack_info that were more recently added.
1 parent 5357f50 commit 31f4aba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/log.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@ def exception(self, *args):
8686
# The traceback should be sufficient if we want it.
8787
# self.error('Exception string: %s', eStrId)
8888

89-
def _log(self, level, msg, args, exc_info=None, extra=None):
89+
def _log(self, level, msg, args, **kwargs):
9090
msg = format(msg, *args)
91-
logging.Logger._log(self, level, msg, (), exc_info=exc_info,
92-
extra=extra)
91+
logging.Logger._log(self, level, msg, (), **kwargs)
9392

9493

9594
class StdoutStreamHandler(logging.StreamHandler):

0 commit comments

Comments
 (0)