-
Notifications
You must be signed in to change notification settings - Fork 243
feat: tls #330
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
feat: tls #330
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.
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
internal/websecure/selfsign.go:183
- The use of '%w' for logging non-error values may cause formatting issues. Consider replacing '%w' with '%v' or another appropriate format specifier for error logging.
s.log.Warnf("Hostname %s is not valid: %w, from %s", hostname, err, info.Conn.RemoteAddr())
jsonrpc.go
Outdated
| } | ||
|
|
||
| //logger.Infof("Received RPC request: Method=%s, Params=%v, ID=%d", request.Method, request.Params, request.ID) | ||
| logger.Tracef("Received RPC request: Method=%s, Params=%v, ID=%w", request.Method, request.Params, request.ID) |
Copilot
AI
Apr 7, 2025
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 format specifier '%w' is intended for error wrapping and is not appropriate for logging non-error values such as request.ID. Consider using '%d' or '%v' based on the type of ID.
| logger.Tracef("Received RPC request: Method=%s, Params=%v, ID=%w", request.Method, request.Params, request.ID) | |
| logger.Tracef("Received RPC request: Method=%s, Params=%v, ID=%v", request.Method, request.Params, request.ID) |
No description provided.