Author: pekka.klarck
Date: Wed Mar 25 10:33:48 2009
New Revision: 1546
Modified:
trunk/src/robot/output/systemlogger.py
Log:
minor cleanup (from the airport =)
Modified: trunk/src/robot/output/systemlogger.py
==============================================================================
--- trunk/src/robot/output/systemlogger.py (original)
+++ trunk/src/robot/output/systemlogger.py Wed Mar 25 10:33:48 2009
@@ -57,11 +57,9 @@
def register_file_logger(self, path=None, level='INFO'):
if not path:
- path = os.environ.get('ROBOT_SYSLOG_FILE', None)
+ path = os.environ.get('ROBOT_SYSLOG_FILE', 'NONE')
level = os.environ.get('ROBOT_SYSLOG_LEVEL', level)
- if not path:
- return
- if path.lower() == 'none':
+ if path.upper() == 'NONE':
return
try:
logger = _FileLogger(path, level)