forked from aschn/drf-tracking
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent log save failure to break API call
This is a follow-up of the discussion in PR aschn#55. If something is going wrong during log saving, we don't want the API to fail and throw out an error to the end user. To do this, silently swallow any exception throwed by save(). A test is provided to check that the response status_code of the API is still 200 even in the event of a DB failure.
- Loading branch information
François Voron
committed
Jul 11, 2017
1 parent
e75bd8a
commit 3405a20
Showing
2 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters