Skip to content

Commit

Permalink
parsing-exception-stacktrace
Browse files Browse the repository at this point in the history
Logging exceptions and their stack trace for internal server errors
  • Loading branch information
twerkmeister committed Nov 11, 2017
1 parent 2ea8189 commit f11d848
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rasa_nlu/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def parse_get(self, request):
returnValue(simplejson.dumps({"error": "{}".format(e)}))
except Exception as e:
request.setResponseCode(500)
logger.exception(e)
returnValue(simplejson.dumps({"error": "{}".format(e)}))

@app.route("/version", methods=['GET'])
Expand Down

0 comments on commit f11d848

Please sign in to comment.