git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f84cbfd
)
- print the actual exception
author
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 11 Jan 2007 22:05:15 +0000
(22:05 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 11 Jan 2007 22:05:15 +0000
(22:05 +0000)
ModPython.py
patch
|
blob
|
history
diff --git
a/ModPython.py
b/ModPython.py
index
2f46b17
..
55dfdca
100644
(file)
--- a/
ModPython.py
+++ b/
ModPython.py
@@
-5,7
+5,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
#
# Copyright (C) 2004-2006 The Trustees of Princeton University
# Mark Huang <mlhuang@cs.princeton.edu>
#
# Copyright (C) 2004-2006 The Trustees of Princeton University
-# $Id: ModPython.py,v 1.
2 2006/10/25 21:05:05
mlhuang Exp $
+# $Id: ModPython.py,v 1.
3 2006/10/30 16:39:24
mlhuang Exp $
#
import sys
#
import sys
@@
-52,7
+52,7
@@
def handler(req):
return apache.OK
return apache.OK
- except:
+ except
Exception, err
:
# Log error in /var/log/httpd/(ssl_)?error_log
# Log error in /var/log/httpd/(ssl_)?error_log
- print >> log, traceback.format_exc()
+ print >> log,
err,
traceback.format_exc()
return apache.HTTP_INTERNAL_SERVER_ERROR
return apache.HTTP_INTERNAL_SERVER_ERROR