Skip to content

Conversation

@AGMETEOR
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 11, 2025 12:03
@AGMETEOR AGMETEOR merged commit 8bc5320 into main Dec 11, 2025
3 checks passed
@AGMETEOR AGMETEOR deleted the fix-logging-2 branch December 11, 2025 12:04
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.

Pull request overview

This PR fixes logging calls to use the correct API for the logger implementation. The logging library uses variadic arguments that are automatically formatted, not printf-style format strings.

  • Removed incorrect printf-style format specifiers (%s, %v) from log messages
  • Updated log calls to pass arguments separately for automatic formatting

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
otel/otel.go Removed %v format specifier from debug log message for OTEL endpoint
cmd/cmd_run.go Removed %s format specifiers from info log message displaying build version and commit

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


func run(configPath string) error {
log.Info("build info: version=%s, commit=%s", version, commit)
log.Info("build info: version , commit ", version, commit)
Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log message has awkward spacing and unclear formatting. The message "build info: version , commit " has spaces before commas and a trailing space, making it difficult to read. Consider using a clearer format such as "build info: version=", "commit=" or "build info: version:", "commit:" to properly separate the labels from the values.

Suggested change
log.Info("build info: version , commit ", version, commit)
log.Info(fmt.Sprintf("build info: version=%s, commit=%s", version, commit))

Copilot uses AI. Check for mistakes.
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