[IMP] Use the logger
bzr revid: stephane@tinyerp.com-20081218213630-i4e0noy12vobjfyw
This commit is contained in:
@@ -159,7 +159,13 @@ if tools.config['xmlrpc']:
|
||||
interface = tools.config["interface"]
|
||||
secure = tools.config["secure"]
|
||||
|
||||
httpd = netsvc.HttpDaemon(interface, port, secure)
|
||||
import OpenSSL
|
||||
|
||||
try:
|
||||
httpd = netsvc.HttpDaemon(interface, port, secure)
|
||||
except OpenSSL.SSL.Error, error:
|
||||
logger.notifyChannel('xml-rpc-ssl', netsvc.LOG_CRITICAL, "Can't load the certificate and/or the private key files" )
|
||||
sys.exit(1)
|
||||
|
||||
if tools.config["xmlrpc"]:
|
||||
xml_gw = netsvc.xmlrpc.RpcGateway('web-services')
|
||||
|
||||
Reference in New Issue
Block a user