-
Notifications
You must be signed in to change notification settings - Fork 505
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
change the logger level, fix #296 #307
Conversation
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.
[TASK:easegress-pr-test SUCCESS]megaease/easegress Pull Request 307 Deploy Test Success
Codecov Report
@@ Coverage Diff @@
## main #307 +/- ##
==========================================
- Coverage 80.32% 80.28% -0.05%
==========================================
Files 53 53
Lines 5926 5929 +3
==========================================
Hits 4760 4760
- Misses 906 909 +3
Partials 260 260
Continue to review full report at Codecov.
|
pkg/filter/proxy/server.go
Outdated
@@ -135,8 +135,11 @@ func (s *servers) handleEvent(event *serviceregistry.ServiceEvent) { | |||
func (s *servers) tryUseService() { | |||
serviceInstanceSpecs, err := s.serviceRegistry.ListServiceInstances(s.poolSpec.ServiceRegistry, s.poolSpec.ServiceName) | |||
|
|||
logger.Warnf("successfully use service %s/%s", |
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.
The level should be Info
.
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.
And it is not good to put the message here: this is a success message, but it may log a warning later in useService
.
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.
Oh, this message is not supposed to be committed. 🤔
pkg/filter/proxy/server.go
Outdated
if err != nil { | ||
logger.Errorf("get service %s/%s failed: %v", | ||
logger.Warnf("first try to use service %s/%s failed: %v, will try again when it's created", |
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.
logger.Warnf("first try to use service %s/%s failed: %v, will try again when it's created", | |
logger.Warnf("try to use service %s/%s failed(will try again): %v", |
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.
[TASK:easegress-pr-test SUCCESS]megaease/easegress Pull Request 307 Deploy Test Success
Check #296 for more details.