Revision: b00aff8ace35
Author: janne.t.harkonen
Date: Thu May 19 05:57:24 2011
Log: Cleanup
http://code.google.com/p/robotframework/source/detail?r=b00aff8ace35
Modified:
/src/robot/output/pyloggingconf.py
=======================================
--- /src/robot/output/pyloggingconf.py Thu May 19 02:53:48 2011
+++ /src/robot/output/pyloggingconf.py Thu May 19 05:57:24 2011
@@ -26,11 +26,12 @@
class RobotHandler(logging.Handler):
def emit(self, record):
- self._get_logger_method(record.levelno)(record.getMessage())
+ method = self._get_logger_method(record.levelno)
+ method(record.getMessage())
def _get_logger_method(self, level):
if level >= logging.WARNING:
- return logger.warn
+ return logger.warn
if level <= logging.DEBUG:
return logger.debug
return logger.info