fixed debug being enabled in web api
This commit is contained in:
parent
b82486bff0
commit
a7244b2a0a
@ -141,6 +141,7 @@ class API:
|
|||||||
resp = Response('pong')
|
resp = Response('pong')
|
||||||
elif action == 'stats':
|
elif action == 'stats':
|
||||||
resp = Response('me_irl')
|
resp = Response('me_irl')
|
||||||
|
raise Exception
|
||||||
elif action == 'site':
|
elif action == 'site':
|
||||||
block = data
|
block = data
|
||||||
siteData = self._core.getData(data)
|
siteData = self._core.getData(data)
|
||||||
@ -255,7 +256,7 @@ class API:
|
|||||||
logger.info('Starting client on ' + self.host + ':' + str(bindPort) + '...', timestamp=True)
|
logger.info('Starting client on ' + self.host + ':' + str(bindPort) + '...', timestamp=True)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
app.run(host=self.host, port=bindPort, debug=True, threaded=True)
|
app.run(host=self.host, port=bindPort, debug=False, threaded=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(str(e))
|
logger.error(str(e))
|
||||||
logger.fatal('Failed to start client on ' + self.host + ':' + str(bindPort) + ', exiting...')
|
logger.fatal('Failed to start client on ' + self.host + ':' + str(bindPort) + ', exiting...')
|
||||||
|
Loading…
Reference in New Issue
Block a user