import xmlrpclib
from mod_python import apache
-from PLC.Debug import log
+from PLC.Logger import logger
from PLC.API import PLCAPI
api = PLCAPI()
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