-
Notifications
You must be signed in to change notification settings - Fork 30
feat: capture and metric item not found instead of log #834
Conversation
autopush/tests/test_websocket.py
Outdated
reactor.callLater(0.1, wait_for_agent_call) | ||
return d | ||
|
||
def test_close_with_delivery_cleanup_and_no_get_uaid_error(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh!
autopush/tests/test_websocket.py
Outdated
@@ -7,7 +7,8 @@ | |||
|
|||
import twisted.internet.base | |||
from autopush.tests.test_db import make_webpush_notification | |||
from boto.dynamodb2.exceptions import ProvisionedThroughputExceededException | |||
from boto.dynamodb2.exceptions import ProvisionedThroughputExceededException, \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer parens instead of \ :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I blame pycharm....
There's no need to log exceptions failing to save a message for a user that has been deleted. Now a metric will be emitted instead. This also tweaks the tox runner to no longer include object memory tracking by default. Closes #811
Codecov Report
@@ Coverage Diff @@
## master #834 +/- ##
=======================================
Coverage 100% 100%
=======================================
Files 48 48
Lines 9446 10146 +700
=======================================
+ Hits 9446 10146 +700
Continue to review full report at Codecov.
|
There's no need to log exceptions failing to save a message for a
user that has been deleted. Now a metric will be emitted instead.
This also tweaks the tox runner to no longer include object memory
tracking by default.
Closes #811