Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

feat: capture and metric item not found instead of log #834

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

bbangert
Copy link
Member

@bbangert bbangert commented Mar 1, 2017

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

reactor.callLater(0.1, wait_for_agent_call)
return d

def test_close_with_delivery_cleanup_and_no_get_uaid_error(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: not?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh!

@@ -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, \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer parens instead of \ :)

Copy link
Member Author

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-io
Copy link

codecov-io commented Mar 2, 2017

Codecov Report

Merging #834 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #834    +/-   ##
=======================================
  Coverage     100%    100%            
=======================================
  Files          48      48            
  Lines        9446   10146   +700     
=======================================
+ Hits         9446   10146   +700
Impacted Files Coverage Δ
autopush/websocket.py 100% <100%> (ø)
autopush/tests/test_websocket.py 100% <100%> (ø)
autopush/router/apns2.py 100% <0%> (ø)
autopush/main.py 100% <0%> (ø)
autopush/router/fcm.py 100% <0%> (ø)
autopush/router/gcm.py 100% <0%> (ø)
autopush/tests/test_integration.py 100% <0%> (ø)
autopush/tests/test_router.py 100% <0%> (ø)
autopush/settings.py 100% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1cdf4e...73e084f. Read the comment docs.

@bbangert bbangert merged commit ff65bb3 into master Mar 2, 2017
@bbangert bbangert deleted the feat/issue-811 branch March 2, 2017 00:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants