aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-02-18 18:19:32 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-02-18 18:19:32 +0000
commitb3211d1c6291514cf24457adcda0aba5d20cbf1a (patch)
treeb440997bb707fe5fa6b4ed93ab1f45646acc9345
parent086a77cc62121f3d8156e4851d96d7b7732536ee (diff)
downloadmsec-b3211d1c6291514cf24457adcda0aba5d20cbf1a.tar
msec-b3211d1c6291514cf24457adcda0aba5d20cbf1a.tar.gz
msec-b3211d1c6291514cf24457adcda0aba5d20cbf1a.tar.bz2
msec-b3211d1c6291514cf24457adcda0aba5d20cbf1a.tar.xz
msec-b3211d1c6291514cf24457adcda0aba5d20cbf1a.zip
Improved message with exceptions file is not found.
-rw-r--r--src/msec/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/msec/config.py b/src/msec/config.py
index e020288..3c84d1f 100644
--- a/src/msec/config.py
+++ b/src/msec/config.py
@@ -303,7 +303,9 @@ class ExceptionConfig:
try:
fd = open(self.config)
except:
- self.log.error(_("Unable to load configuration file %s: %s") % (self.config, sys.exc_value[1]))
+ # this file is optional, so if it is not found that's not fatal
+ self.log.info(_("loading exceptions file %s: %s") % (self.config, sys.exc_value[1]))
+ self.log.info(_("No exceptions loaded"))
return False
for line in fd.readlines():
line = line.strip()