]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Show traceback on exception.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 4 Mar 2009 06:20:08 +0000 (06:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    PLD_Builder/request_handler_server.py -> 1.11

PLD_Builder/request_handler_server.py

index b4f759c773aba184c600b0589e39a7fc667b6117..c987b4801662ef590d32086deeca4f94f211532b 100644 (file)
@@ -6,6 +6,7 @@ import cgi
 import time
 import log
 import sys
+import traceback
 from config import config, init_conf
 
 from os import curdir, sep
@@ -45,7 +46,7 @@ class MyHandler(BaseHTTPRequestHandler):
                except Exception, e:
                        self.send_error(500)
                        self.end_headers()
-                       log.error("request_handler_server: [%s]: exception: %s" % (self.client_address[0], e))
+                       log.error("request_handler_server: [%s]: exception: %s\n%s" % (self.client_address[0], e, traceback.format_exc()))
                        raise
                        pass
 
This page took 0.033606 seconds and 4 git commands to generate.