Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ecda8b commit 068a64aCopy full SHA for 068a64a
managed_vms/endpoints/main.py
@@ -20,6 +20,7 @@
20
21
import base64
22
import json
23
+import logging
24
25
from flask import Flask, jsonify, request, send_from_directory
26
from six.moves import http_client
@@ -78,6 +79,7 @@ def auth_info_google_id_token():
78
79
@app.errorhandler(http_client.INTERNAL_SERVER_ERROR)
80
def unexpected_error(e):
81
"""Handle exceptions by returning swagger-compliant json."""
82
+ logging.exception('An error occured while processing the request.')
83
response = jsonify({
84
'code': http_client.INTERNAL_SERVER_ERROR,
85
'message': 'Exception: {}'.format(e)})
0 commit comments