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

fix: log errors inside VerifyPhoneCode #470

Merged
merged 3 commits into from
Oct 1, 2024

Conversation

mfrancisc
Copy link
Contributor

@mfrancisc mfrancisc commented Sep 30, 2024

This PR moves all the logging inside the VerifyPhoneCode function and removes the log error from the caller since the function might return an error that doesn't need to be logged which was already logged as Info.

Copy link
Contributor

@alexeykazakov alexeykazakov left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link

sonarcloud bot commented Sep 30, 2024

Copy link

codecov bot commented Sep 30, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 81.83%. Comparing base (bc6b76d) to head (788d1c9).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pkg/verification/service/verification_service.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #470      +/-   ##
==========================================
- Coverage   81.89%   81.83%   -0.07%     
==========================================
  Files          42       42              
  Lines        2707     2708       +1     
==========================================
- Hits         2217     2216       -1     
- Misses        404      406       +2     
  Partials       86       86              
Flag Coverage Δ
unittests 81.83% <0.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@MatousJobanek MatousJobanek left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link

openshift-ci bot commented Oct 1, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexeykazakov, MatousJobanek, mfrancisc, rajivnathan, xcoulon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [MatousJobanek,alexeykazakov,mfrancisc,rajivnathan,xcoulon]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mfrancisc mfrancisc merged commit 503d232 into codeready-toolchain:master Oct 1, 2024
9 of 11 checks passed
@mfrancisc mfrancisc deleted the fixlog branch October 1, 2024 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants