Skip to content
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

Configure workers to log to a file #59

Merged
merged 3 commits into from
Mar 24, 2023
Merged

Configure workers to log to a file #59

merged 3 commits into from
Mar 24, 2023

Conversation

fkorotkov
Copy link
Contributor

@@ -23,6 +26,8 @@ func newRunCommand() *cobra.Command {
}
cmd.PersistentFlags().StringVar(&bootstrapTokenRaw, "bootstrap-token", "",
"a bootstrap token retrieved via `orchard get bootstrap-token <service-account-name-for-workers>`")
cmd.PersistentFlags().StringVar(&logFilePath, "log-file", "/tmp/orchard-worker.log",
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think everyone wants to log to a file? IMO the standard output/error should be the default, as in Persistent Worker, for example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SGTM. See ed35e54

@fkorotkov fkorotkov enabled auto-merge (squash) March 24, 2023 18:02
@fkorotkov fkorotkov merged commit f420268 into main Mar 24, 2023
@fkorotkov fkorotkov deleted the worker-log-file branch March 24, 2023 18:03
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.

None yet

2 participants