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.
2 parents 81dc259 + 5da4d51 commit 5880ffcCopy full SHA for 5880ffc
5-logging/bookshelf/__init__.py
@@ -74,6 +74,7 @@ def index():
74
# Add an error handler that reports exceptions to Stackdriver Error
75
# Reporting. Note that this error handler is only used when debug
76
# is False
77
+ # [START setup_error_reporting]
78
@app.errorhandler(500)
79
def server_error(e):
80
client = error_reporting.Client(app.config['PROJECT_ID'])
@@ -82,6 +83,7 @@ def server_error(e):
82
83
return """
84
An internal error occurred.
85
""", 500
86
+ # [END setup_error_reporting]
87
88
return app
89
0 commit comments