remove PLC.Debug.log, use PLC.Logger.logger instead
[plcapi.git] / apache / ModPythonJson.py
index 22dbdc7..78cb363 100644 (file)
@@ -12,7 +12,7 @@ import traceback
 import xmlrpclib
 from mod_python import apache
 
-from PLC.Debug import log
+from PLC.Logger import logger
 
 from PLC.API import PLCAPI
 api = PLCAPI()
@@ -56,6 +56,5 @@ def handler(req):
         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