Author: pekka.klarck
Date: Sat Mar 21 14:21:44 2009
New Revision: 1463
Modified:
trunk/src/robot/output/output.py
Log:
implemented writing warnings to normal log also to syslog (issue 200)
Modified: trunk/src/robot/output/output.py
==============================================================================
--- trunk/src/robot/output/output.py (original)
+++ trunk/src/robot/output/output.py Sat Mar 21 14:21:44 2009
@@ -135,6 +135,8 @@
def write(self, msg='', level='INFO', html=False):
if self._debugfile is not None and self._is_logged(level, 'DEBUG'):
self._debugfile.message(msg)
+ if level.upper() == 'WARN':
+ self.syslog.warn(msg)
AbstractLogger.write(self, msg, level, html)
def _write(self, msg):