[Oval-commits] r188 - trunk/oval-agent
Pavel Vinogradov
blaze-guest at alioth.debian.org
Tue Aug 21 09:42:28 UTC 2007
Author: blaze-guest
Date: 2007-08-21 09:42:28 +0000 (Tue, 21 Aug 2007)
New Revision: 188
Modified:
trunk/oval-agent/oval-agent.cfg
trunk/oval-agent/oval-agent.py
Log:
Increase debug info
Modified: trunk/oval-agent/oval-agent.cfg
===================================================================
--- trunk/oval-agent/oval-agent.cfg 2007-08-21 09:41:20 UTC (rev 187)
+++ trunk/oval-agent/oval-agent.cfg 2007-08-21 09:42:28 UTC (rev 188)
@@ -9,6 +9,6 @@
log_dir = /home/blaze/tmp/oval/agent/log
log_file = oval-agent.log
#log_level = CRITICAL | ERROR | WARNING (default) | INFO | DEBUG | NOTSET
-log_level = INFO
+log_level = DEBUG
workdir = /home/blaze/tmp/oval/agent/definitions
Modified: trunk/oval-agent/oval-agent.py
===================================================================
--- trunk/oval-agent/oval-agent.py 2007-08-21 09:41:20 UTC (rev 187)
+++ trunk/oval-agent/oval-agent.py 2007-08-21 09:42:28 UTC (rev 188)
@@ -12,6 +12,7 @@
from ConfigParser import SafeConfigParser
import os, logging, sys
import getopt
+import traceback
from ovalHttpClient import ovalHttpClient
class configNotFoundError (Exception):
@@ -120,5 +121,6 @@
sys.stderr.write (str(e))
except KeyboardInterrupt, e:
sys.stderr.write ('Execution interrupted by keyboard.')
- except Exception:
- sys.stderr.write('Error in config file.')
\ No newline at end of file
+ except Exception, e:
+ sys.stderr.write('Unhandled error during execution: %s : %s.' % (e.__class__, str(e)))
+ traceback.print_exc()
\ No newline at end of file
More information about the Oval-commits
mailing list