Skip to content

Conversation

@frelon
Copy link
Contributor

@frelon frelon commented Nov 19, 2025

The --log-file flag takes a string that can be a path to a file or
-/stdout/stderr and sets the log target.

Signed-off-by: Fredrik Lönnegren [email protected]

@frelon frelon requested a review from a team as a code owner November 19, 2025 12:43
Copy link
Contributor

@atanasdinov atanasdinov left a comment

Choose a reason for hiding this comment

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

This is great, one minor comment but happy to approve otherwise!

The --log-file flag takes a string that can be a path to a file or
-/stdout/stderr and sets the log target.

Signed-off-by: Fredrik Lönnegren <[email protected]>
Copy link
Contributor

@davidcassany davidcassany left a comment

Choose a reason for hiding this comment

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

LGTM

}

func Teardown(ctx *cli.Context) error {
return logFile.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

This is going to panic with nil dereference in the cases where we don't log to file. Perhaps a single if logFile != nil first should be enough?

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.

3 participants