From 7c68ebb45ef18408bcb23d08c88cec3c77a1f766 Mon Sep 17 00:00:00 2001 From: mstoro Date: Thu, 31 Mar 2022 11:40:51 +0300 Subject: [PATCH 1/2] [CCTRI-3480] remove traceback from logs in case of 404 error --- code/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/app.py b/code/app.py index f62c25e..76692e9 100644 --- a/code/app.py +++ b/code/app.py @@ -27,7 +27,6 @@ def handle_relay_error(error): @app.errorhandler(Exception) def handle_error(exception): - app.logger.error(traceback.format_exc()) code = getattr(exception, 'code', 500) message = getattr(exception, 'description', 'Something went wrong.') reason = '.'.join([ @@ -35,6 +34,9 @@ def handle_error(exception): exception.__class__.__name__, ]) + if code != 404: + app.logger.error(traceback.format_exc()) + response = jsonify(code=code, message=message, reason=reason) return response, code From fab017b55792c7fbed9db2a4f5874dbc0efc1867 Mon Sep 17 00:00:00 2001 From: mstoro Date: Tue, 5 Apr 2022 13:15:54 +0300 Subject: [PATCH 2/2] Release 2.0.5 --- code/container_settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/container_settings.json b/code/container_settings.json index c7225d4..1d5d3e6 100644 --- a/code/container_settings.json +++ b/code/container_settings.json @@ -1,4 +1,4 @@ { - "VERSION": "2.0.4", + "VERSION": "2.0.5", "NAME": "Gigamon ThreatINSIGHT" }