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
Setting tag plcapi-5.4-2
[plcapi.git]
/
apache
/
ModPythonJson.py
diff --git
a/apache/ModPythonJson.py
b/apache/ModPythonJson.py
index
22dbdc7
..
78cb363
100644
(file)
--- a/
apache/ModPythonJson.py
+++ b/
apache/ModPythonJson.py
@@
-12,7
+12,7
@@
import traceback
import xmlrpclib
from mod_python import apache
import xmlrpclib
from mod_python import apache
-from PLC.
Debug import log
+from PLC.
Logger import logger
from PLC.API import PLCAPI
api = PLCAPI()
from PLC.API import PLCAPI
api = PLCAPI()
@@
-56,6
+56,5
@@
def handler(req):
return apache.OK
except Exception, err:
return apache.OK
except Exception, err:
- # Log error in /var/log/httpd/(ssl_)?error_log
- print >> log, err, traceback.format_exc()
+ logger.exception("INTERNAL ERROR !!")
return apache.HTTP_INTERNAL_SERVER_ERROR
return apache.HTTP_INTERNAL_SERVER_ERROR