X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fserver%2Fmodpython%2FSfaSliceMgrModPython.py;h=dcb85626b475ea7a705724bb6233b39fd5f321df;hb=a0ef6e7c91c3c8fa376943d28fec8c5c204a78cd;hp=a28b002d2c2d635ef1c00557eaadb36927e6904f;hpb=cb83b38f6586314d51e23dad227047d126bd4b76;p=sfa.git diff --git a/sfa/server/modpython/SfaSliceMgrModPython.py b/sfa/server/modpython/SfaSliceMgrModPython.py index a28b002d..dcb85626 100755 --- a/sfa/server/modpython/SfaSliceMgrModPython.py +++ b/sfa/server/modpython/SfaSliceMgrModPython.py @@ -9,13 +9,12 @@ import sys import traceback -import xmlrpclib from mod_python import apache -from sfa.plc.api import SfaAPI -from sfa.util.sfalogging import sfa_logger +from sfa.util.sfalogging import logger +from sfa.planetlab.server import SfaApi -api = SfaAPI(interface='slicemgr') +api = SfaApi(interface='slicemgr') def handler(req): try: @@ -51,7 +50,7 @@ def handler(req): return apache.OK - except Exception, err: + except Exception as err: # Log error in /var/log/httpd/(ssl_)?error_log - sfa_logger().log_exc('%r'%err) + logger.log_exc('%r'%err) return apache.HTTP_INTERNAL_SERVER_ERROR