Skip to content

Conversation

@ym
Copy link
Contributor

@ym ym commented Apr 7, 2025

No description provided.

@ym ym requested review from adamshiervani and Copilot and removed request for Copilot April 7, 2025 11:28
Copy link
Contributor

Copilot AI left a 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)
Copy link

Copilot AI Apr 7, 2025

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.

Suggested change
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)

Copilot uses AI. Check for mistakes.
@ym ym force-pushed the feat/tls-config branch from d5be5e3 to 0564922 Compare April 10, 2025 22:31
@ym ym force-pushed the feat/tls-config branch from 0564922 to 4571362 Compare April 10, 2025 22:38
@ym ym merged commit e87d885 into jetkvm:dev Apr 10, 2025
2 checks passed
ym added a commit that referenced this pull request Apr 10, 2025
ym added a commit to ym/jetkvm-kvm that referenced this pull request Jun 13, 2025
ym added a commit to ym/jetkvm-kvm that referenced this pull request Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants