summaryrefslogtreecommitdiffstats
path: root/src/lib/Component.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Component.py')
-rw-r--r--src/lib/Component.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/Component.py b/src/lib/Component.py
index 2618265c7..7ee2df515 100644
--- a/src/lib/Component.py
+++ b/src/lib/Component.py
@@ -1,7 +1,7 @@
'''Cobalt component base classes'''
__revision__ = '$Revision$'
-import logging, select, signal, socket, sys, urlparse, xmlrpclib, cPickle, os
+import logging, select, signal, socket, sys, urlparse, xmlrpclib, cPickle, os, traceback
from base64 import decodestring
import BaseHTTPServer, SimpleXMLRPCServer
@@ -230,7 +230,12 @@ class Component(TLSServer,
except ForkedChild:
raise
except:
- self.logger.error("Unexpected handler failure", exc_info=1)
+ self.logger.error("Unexpected handler failure")
+ trace = sys.exc_info()
+ self.logger.error("%s : %s" % (str(trace[0]), str(trace[1])))
+ for line in traceback.format_exc().splitlines():
+ self.logger.error(line)
+ del trace
# report exception back to server
response = xmlrpclib.dumps(xmlrpclib.Fault(1,
"%s:%s" % (sys.exc_type, sys.exc_value)))