import sys
import traceback
-import xmlrpclib
+import xmlrpc.client
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()
+ except Exception as err:
+ logger.exception("INTERNAL ERROR !!")
return apache.HTTP_INTERNAL_SERVER_ERROR