Revision: 2362
Author: pekka.klarck
Date: Fri Oct 23 00:54:25 2009
Log: Write message about importing libraries and resource/variable files into syslog using INFO level instead of WARN. Issue 407.
http://code.google.com/p/robotframework/source/detail?r=2362

Modified:
 /trunk/src/robot/running/namespace.py

=======================================
--- /trunk/src/robot/running/namespace.py       Mon Oct 12 17:11:14 2009
+++ /trunk/src/robot/running/namespace.py       Fri Oct 23 00:54:25 2009
@@ -90,7 +90,7 @@
             self._userlibs.append(resource.user_keywords)
             self._handle_imports(resource.imports)
         else:
-            LOGGER.warn("Resource file '%s' already imported by suite '%s'"
+            LOGGER.info("Resource file '%s' already imported by suite '%s'"
                         % (path, self.suite.longname))

     def import_variables(self, path, args, overwrite=False):
@@ -100,14 +100,14 @@
         else:
             msg = "Variable file '%s'" % path
             if args:
-                msg += " with arguments %s" % (utils.seq2str2(args))
-            LOGGER.warn("%s already imported by suite '%s'"
+                msg += " with arguments %s" % utils.seq2str2(args)
+            LOGGER.info("%s already imported by suite '%s'"
                         % (msg, self.suite.longname))

     def import_library(self, name, args=None):
         lib = IMPORTER.import_library(name, args)
         if self._testlibs.has_key(lib.name):
-            LOGGER.warn("Test library '%s' already imported by suite '%s'"
+            LOGGER.info("Test library '%s' already imported by suite '%s'"
                         % (lib.name, self.suite.longname))
             return
         self._testlibs[lib.name] = lib

Reply via email to