From a7244b2a0a327d20b97cd37bafa087d61b30fa49 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 1 May 2018 02:01:57 -0500 Subject: [PATCH] fixed debug being enabled in web api --- onionr/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onionr/api.py b/onionr/api.py index f8715366..dcf234b9 100755 --- a/onionr/api.py +++ b/onionr/api.py @@ -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...')