-
Notifications
You must be signed in to change notification settings - Fork 835
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
Refine logging in pkg/dashboard/apiserver/auth/gcp #3527
Refine logging in pkg/dashboard/apiserver/auth/gcp #3527
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Welcome @yoonian! |
@yoonian: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
1 similar comment
@yoonian: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
80f13ab
to
47459da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
func Bootstrap(conf *config.ChaosDashboardConfig, logger logr.Logger) *Service { | ||
service, _ := NewService(conf, logger.WithName("gcp auth api")) | ||
return service | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please do not ignore that error returned by NewService
. After that, Bootstrap
do not do extra things other than NewService
, please use NewService
with fx
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I'll apply.
) (*Service, error) { | ||
rootUrl, err := url.Parse(conf.RootUrl) | ||
if err != nil { | ||
logger.Error(err, "fail to parse rootUrl") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as we have returned the error
, do not log it again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay!
Codecov Report
@@ Coverage Diff @@
## master #3527 +/- ##
==========================================
+ Coverage 40.12% 40.18% +0.06%
==========================================
Files 166 166
Lines 14187 14187
==========================================
+ Hits 5692 5701 +9
+ Misses 8062 8055 -7
+ Partials 433 431 -2
Continue to review full report at Codecov.
|
ca888bc
to
e1aaf36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
e1aaf36
to
7ffe4d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 7ffe4d6
|
5bdaa4f
to
7ffe4d6
Compare
2430b73
to
5543d9d
Compare
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 5543d9d
|
@yoonian: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
Signed-off-by: Yoon PyungHo <learder@gmail.com>
46bdcde
to
b709220
Compare
/merge |
This pull request has been accepted and is ready to merge. Commit hash: e3234e8
|
What problem does this PR solve?
Close #2873
What's changed and how it works?
Moving package level variable log into struct Service as a field
Related changes
chaos-mesh/website
Dashboard UI
Checklist
CHANGELOG
CHANGELOG.md
Tests
Side effects