--- __init__.py (revisione 42136) +++ __init__.py (copia locale) @@ -1060,7 +1060,7 @@ """ return LogRecord(name, level, fn, lno, msg, args, exc_info) - def _log(self, level, msg, args, exc_info=None): + def _log(self, level, msg, args, **kwargs): """ Low-level logging routine which creates a LogRecord and then calls all the handlers of this logger to handle the record. @@ -1069,10 +1069,14 @@ fn, lno, func = self.findCaller() else: fn, lno, func = "(unknown file)", 0, "(unknown function)" + + exc_info = kwargs.get('exc_info') if exc_info: if type(exc_info) != types.TupleType: exc_info = sys.exc_info() - record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info) + kwargs['exc_info'] = exc_info + + record = self.makeRecord(self.name, level, fn, lno, msg, args, **kwargs) self.handle(record) def handle(self, record):