Skip to content

Commit e3cd42d

Browse files
authored
Merge pull request #79 from CiscoSecurity/release-2.0.4
Release 2.0.4
2 parents 0537485 + 32cc1ea commit e3cd42d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

code/app.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import traceback
2+
13
from flask import Flask, jsonify, g
24

35
from api.enrich import enrich_api
@@ -22,7 +24,7 @@
2224

2325
@app.errorhandler(Exception)
2426
def handle_error(exception):
25-
app.logger.error(exception)
27+
app.logger.error(traceback.format_exc())
2628
code = getattr(exception, 'code', 500)
2729
message = getattr(exception, 'description', 'Something went wrong.')
2830
reason = '.'.join([
@@ -36,7 +38,7 @@ def handle_error(exception):
3638

3739
@app.errorhandler(TRFormattedError)
3840
def handle_pusledive_errors(error):
39-
app.logger.error(error.json)
41+
app.logger.error(traceback.format_exc())
4042
g.errors = [error.json]
4143
return jsonify_result()
4244

code/container_settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"VERSION": "2.0.3",
2+
"VERSION": "2.0.4",
33
"NAME": "Pulsedive"
44
}

0 commit comments

Comments
 (0)