Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't log succesful SMS sends twice #490

Merged
merged 4 commits into from Feb 3, 2022
Merged

Don't log succesful SMS sends twice #490

merged 4 commits into from Feb 3, 2022

Conversation

DMRobertson
Copy link
Contributor

No description provided.

@DMRobertson DMRobertson requested a review from a team as a code owner January 31, 2022 14:10
David Robertson added 2 commits January 31, 2022 14:11
Copy link
Member

@anoadragon453 anoadragon453 left a comment

Choose a reason for hiding this comment

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

The code in this file is... interesting.

@@ -161,11 +161,3 @@ async def sendTextSMS(
request_id,
resp.code,
)

Copy link
Member

Choose a reason for hiding this comment

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

Not explicitly part of this PR, but should the above logger.error lines be accompanied with a return?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. What the dickens is happening here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tempted as I am to rewrite the whole thing, I'll be a good boy: stick in the return and call it a day.

Copy link
Member

@anoadragon453 anoadragon453 left a comment

Choose a reason for hiding this comment

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

lgtm!

@DMRobertson DMRobertson merged commit ed72e38 into main Feb 3, 2022
@DMRobertson DMRobertson deleted the dmr/log-once branch February 3, 2022 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants