r47348 - Appease twistedchecker.
mithrandi-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Thu, 5 May 2016 21:10:37 -0600 (MDT)
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: mithrandi
Date: Thu May 5 21:10:32 2016
New Revision: 47348
Modified:
branches/stdlib-exception-logging-8316/twisted/logger/_stdlib.py
Log:
Appease twistedchecker.
Modified: branches/stdlib-exception-logging-8316/twisted/logger/_stdlib.py
==============================================================================
--- branches/stdlib-exception-logging-8316/twisted/logger/_stdlib.py (original)
+++ branches/stdlib-exception-logging-8316/twisted/logger/_stdlib.py Thu May 5 21:10:32 2016
@@ -107,13 +107,13 @@
level = event.get("log_level", LogLevel.info)
failure = event.get('log_failure')
if failure is None:
- exc_info = None
+ excInfo = None
else:
- exc_info = (
+ excInfo = (
failure.type, failure.value, failure.getTracebackObject())
stdlibLevel = toStdlibLogLevelMapping.get(level, stdlibLogging.INFO)
self.logger.log(
- stdlibLevel, StringifiableFromEvent(event), exc_info=exc_info)
+ stdlibLevel, StringifiableFromEvent(event), exc_info=excInfo)