aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-02-13 18:14:01 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-02-13 18:14:01 -0500
commit9f61ad1981febe1be8631c0ee24d8febd83db714 (patch)
treee45b046be9739e08f2c795a843a85feeb33b04b4 /util
parent938a4e8b26d79b3f1935e03bde319c6d1d42e2cd (diff)
Added TimeSwitch to switch between behaviors at set time intervals
Diffstat (limited to 'util')
-rw-r--r--util/Config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/Config.py b/util/Config.py
index 25018a8..962aa25 100644
--- a/util/Config.py
+++ b/util/Config.py
@@ -26,8 +26,8 @@ def loadConfigFile(fileName): #TODO: error handling etc.
resolveDocumentInheritances(config.getroot())
return config
except Exception as inst:
- main_log.error('Error loading config file ' + fileName)#, inst) TODO: log exception too
- main_log.error(str(inst))
+ main_log.info('Error loading config file ' + fileName)#, inst) TODO: log exception too
+ main_log.info(str(inst))
return None
def getElement(el):
"""Takes an Element or an ElementTree. If it is a tree, it returns its root. Otherwise, just returns
@@ -89,7 +89,7 @@ def fileToDict(fileName):
for line in f:
fileText += line.rstrip('\n').lstrip('\t') + ' '
except IOError:
- exception_log.exception('Failure reading ' + fileName)
+ main_log.info('Failure reading ' + fileName)
return {}
if fileText == '':
return {}
@@ -98,7 +98,7 @@ def fileToDict(fileName):
main_log.info(fileName + ' read and parsed')
return resultDict
except:
- exception_log.info(fileName + ' is not a well formed python dict. Parsing failed')
+ main_log.exception(fileName + ' is not a well formed python dict. Parsing failed')
return eval(fileText)
def pullArgsFromItem(parentNode):