* Moved UDSActorService inside windows module

* Fixed httpserver exec
This commit is contained in:
Adolfo Gómez García 2014-11-12 04:41:03 +01:00
parent 47e615b7b2
commit 5bca96a882
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ class HTTPServerHandler(SimpleHTTPServer.BaseHTTPServer.BaseHTTPRequestHandler):
def executor():
logger.debug('Executing script: {}'.format(script))
try:
exec(script, None, None)
six.exec_(script, None, None)
except Exception as e:
logger.error('Error executing script: {}'.format(e))
th = threading.Thread(target=executor)

View File

@ -188,7 +188,7 @@ class UDSActorSvc(win32serviceutil.ServiceFramework):
'''
# If no configuration is found, stop service
if cfg is None:
logger.debug('No configuration found, stopping service')
logger.fatal('No configuration found, stopping service')
return False
self.api = REST.Api(cfg['host'], cfg['masterKey'], cfg['ssl'], scrambledResponses=True)