Skip to content

Commit 5da4d51

Browse files
author
Bill Prin
committed
Add Error Region Tags
1 parent 81dc259 commit 5da4d51

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

5-logging/bookshelf/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def index():
7474
# Add an error handler that reports exceptions to Stackdriver Error
7575
# Reporting. Note that this error handler is only used when debug
7676
# is False
77+
# [START setup_error_reporting]
7778
@app.errorhandler(500)
7879
def server_error(e):
7980
client = error_reporting.Client(app.config['PROJECT_ID'])
@@ -82,6 +83,7 @@ def server_error(e):
8283
return """
8384
An internal error occurred.
8485
""", 500
86+
# [END setup_error_reporting]
8587

8688
return app
8789

0 commit comments

Comments
 (0)