Skip to content

Commit 5880ffc

Browse files
authored
Merge pull request GoogleCloudPlatform#111 from GoogleCloudPlatform/error_regions
Add Error Region Tags
2 parents 81dc259 + 5da4d51 commit 5880ffc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)