Revision: 3996
Author: pekka.klarck
Date: Mon Aug 30 10:08:16 2010
Log: no more extra logging with warnings (issue 635)
http://code.google.com/p/robotframework/source/detail?r=3996

Modified:
 /trunk/atest/robot/standard_libraries/builtin/log.txt
 /trunk/src/robot/output/monitor.py

=======================================
--- /trunk/atest/robot/standard_libraries/builtin/log.txt Mon Aug 30 09:54:57 2010 +++ /trunk/atest/robot/standard_libraries/builtin/log.txt Mon Aug 30 10:08:16 2010
@@ -19,7 +19,8 @@
     Check Log Message  ${tc.kws[2].msgs[1]}  Debug level  DEBUG
     Check Log Message  ${tc.kws[3].msgs[1]}  Info level  INFO
     Check Log Message  ${tc.kws[4].msgs[1]}  Warn level  WARN
-    Check Log Message  ${ERRORS.msgs[0]}  Warn level  WARN
+    Length Should Be   ${tc.kws[4].msgs}     3
+    Check Log Message  ${ERRORS.msgs[0]}     Warn level  WARN
     Check Log Message  ${tc.kws[5].msgs[1]}  Fail level  FAIL
     Check Log Message  ${tc.kws[6].msgs[1]}  Error level  ERROR

=======================================
--- /trunk/src/robot/output/monitor.py  Mon May 31 05:21:54 2010
+++ /trunk/src/robot/output/monitor.py  Mon Aug 30 10:08:16 2010
@@ -59,14 +59,14 @@

     def output_file(self, name, path):
         # called by LOGGER
-        if not self._running_suites:  # ignores splitted output files
+        if not self._running_suites:  # ignore split output files
             self._write('%s %s' % ((name+':').ljust(8), path))

     def message(self, msg):
         # called by LOGGER
         if self._is_logged(msg.level):
message = '[ %s ] %s' % (self._highlight(msg.level), msg.message)
-            self._write(message, stream=sys.stderr)
+            self._write(message, stream=sys.__stderr__)

     def _write(self, message, newline=True, stream=sys.stdout):
         if newline:

Reply via email to