changed the /right/ error to warning to prevent stderr spewing
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Feb 2008 21:08:02 +0000 (21:08 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Feb 2008 21:08:02 +0000 (21:08 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8837 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/python/oils/utils/idl.py

index 0ec0f0a..def3b24 100644 (file)
@@ -152,7 +152,7 @@ class IDLParser(object):
             try:
                 keys[obj.position] = obj.name
             except Exception, e:
-                osrf.log.log_warn("parse_fields(): position out of range.  pos=%d : key-size=%d" % (obj.position, len(keys)))
+                osrf.log.log_error("parse_fields(): position out of range.  pos=%d : key-size=%d" % (obj.position, len(keys)))
                 raise e
 
             idlobj.fields.append(obj)
@@ -184,7 +184,7 @@ class IDLClass(object):
             return [f for f in self.fields if f.name == field_name][0]
         except:
             msg = "No field '%s' in IDL class '%s'" % (field_name, self.name)
-            osrf.log.log_error(msg)
+            osrf.log.log_warn(msg)
             #raise IDLException(msg)
 
 class IDLField(object):