forked from shaba/openuds
* Moved UDSActorService inside windows module
* Fixed httpserver exec
This commit is contained in:
parent
47e615b7b2
commit
5bca96a882
@ -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)
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user