fixed debug being enabled in web api

master
Kevin Froman 2018-05-01 02:01:57 -05:00
parent b82486bff0
commit a7244b2a0a
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 2 additions and 1 deletions

View File

@ -141,6 +141,7 @@ class API:
resp = Response('pong')
elif action == 'stats':
resp = Response('me_irl')
raise Exception
elif action == 'site':
block = data
siteData = self._core.getData(data)
@ -255,7 +256,7 @@ class API:
logger.info('Starting client on ' + self.host + ':' + str(bindPort) + '...', timestamp=True)
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:
logger.error(str(e))
logger.fatal('Failed to start client on ' + self.host + ':' + str(bindPort) + ', exiting...')