git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'newinterface' of ssh://bakers@git.planet-lab.org/git/plcapi into newint...
[plcapi.git]
/
ModPython.py
diff --git
a/ModPython.py
b/ModPython.py
index
0d630d7
..
07a0fda
100644
(file)
--- a/
ModPython.py
+++ b/
ModPython.py
@@
-5,11
+5,10
@@
# 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$
-# $URL$
#
import sys
#
import sys
+import time
import traceback
import xmlrpclib
from mod_python import apache
import traceback
import xmlrpclib
from mod_python import apache
@@
-59,5
+58,6
@@
def handler(req):
except Exception, err:
# Log error in /var/log/httpd/(ssl_)?error_log
except Exception, err:
# Log error in /var/log/httpd/(ssl_)?error_log
- print >> log, err, traceback.format_exc()
+ t = "[" + time.ctime() + "] [error]"
+ print >> log, t, err, traceback.format_exc()
return apache.HTTP_INTERNAL_SERVER_ERROR
return apache.HTTP_INTERNAL_SERVER_ERROR