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

Remove duplicate logging when the function returns error #429

Merged
merged 1 commit into from
Oct 22, 2022

Conversation

hackerwins
Copy link
Member

@hackerwins hackerwins commented Oct 22, 2022

What this PR does / why we need it:

Remove duplicate logging when the function returns error

If the function returns an error, the error log will be printed by the caller. In this case, remove the error logging from the function.

Which issue(s) this PR fixes:

Address #199

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation:


Checklist:

  • Added relevant tests or not required
  • Didn't break anything

If the function returns an error, the error log will be printed by the
caller. In this case, remove the error logging from the function.
@hackerwins hackerwins marked this pull request as ready for review October 22, 2022 14:13
@hackerwins hackerwins merged commit 89a2217 into main Oct 22, 2022
@hackerwins hackerwins deleted the cleanup-loggings branch October 22, 2022 14:13
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.

1 participant