-
Notifications
You must be signed in to change notification settings - Fork 14
Reduce logs for scaler-dlx #52
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
Conversation
liranbg
left a comment
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.
👏🏼
minor comments
pkg/dlx/handler.go
Outdated
| res.WriteHeader(http.StatusInternalServerError) | ||
| return | ||
| } | ||
| h.logger.DebugWith("success creating targetURL") |
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.
remove log line
pkg/dlx/handler.go
Outdated
| } | ||
| h.logger.DebugWith("success creating targetURL") | ||
|
|
||
| //if in cache, do not log |
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.
| //if in cache, do not log | |
| // if in cache, do not log |
instead of comment what, comment why
| if strings.Contains(err.Error(), "context canceled") && timeSinceLastCtxErr { | ||
| h.lastProxyErrorTime = time.Now() | ||
| } | ||
| if !strings.Contains(err.Error(), "context canceled") || timeSinceLastCtxErr { | ||
| h.logger.DebugWith("http: proxy error", "error", err) | ||
| } |
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.
comment what are you trying to achieve here / why
No description provided.