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: error log use wrong variable err #18602

Merged
merged 1 commit into from
Apr 26, 2023
Merged

Conversation

dyf991645
Copy link
Contributor

Thank you for contributing to Harbor!

Comprehensive Summary of your change

Issue being fixed

Fixes #(issue)
At harbor/src/jobservice/mgt/manager.go(161). logger.Errorf should log the er variable returned by t.Load(), which is assigned to the er variable. However, the err variable is referenced instead.

Signed-off-by: MoonStrider <37744291+dyf991645@users.noreply.github.com>
Copy link
Member

@chlins chlins left a comment

Choose a reason for hiding this comment

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

lgtm

@chlins chlins added the release-note/update Update or Fix label Apr 26, 2023
@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Merging #18602 (0c234d0) into main (e20e440) will increase coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #18602      +/-   ##
==========================================
+ Coverage   67.38%   67.41%   +0.02%     
==========================================
  Files         984      984              
  Lines      107010   107010              
  Branches     2670     2670              
==========================================
+ Hits        72113    72139      +26     
+ Misses      31014    30992      -22     
+ Partials     3883     3879       -4     
Flag Coverage Δ
unittests 67.41% <0.00%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
src/jobservice/mgt/manager.go 59.55% <0.00%> (ø)

... and 5 files with indirect coverage changes

@MinerYang MinerYang merged commit bf6389e into goharbor:main Apr 26, 2023
@OrlinVasilev
Copy link
Member

@dyf991645 congrats on your first PR here :)

WilfredAlmeida pushed a commit to WilfredAlmeida/harbor that referenced this pull request Jul 8, 2023
Update manager.go

Signed-off-by: MoonStrider <37744291+dyf991645@users.noreply.github.com>
Signed-off-by: Wilfred Almeida <60785452+WilfredAlmeida@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/update Update or Fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants