Skip to content

feat: add log level option to buildkitd config#6732

Merged
tonistiigi merged 1 commit intomoby:masterfrom
jsternberg:log-verbosity
May 6, 2026
Merged

feat: add log level option to buildkitd config#6732
tonistiigi merged 1 commit intomoby:masterfrom
jsternberg:log-verbosity

Conversation

@jsternberg
Copy link
Copy Markdown
Collaborator

This adds a way to set the log level of buildkitd outside of using
--debug or --trace which allows increasing the log level rather than
only lowering it.

The --debug and --trace options will still exist both in the
configuration file and on the command line. These are more general
convenience options. Setting the log level option will override the log
level and will take precedence over the more general options.

Fixes #6375.

Copy link
Copy Markdown
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

Deprecate the Debug/Trace if they are not needed anymore.

@jsternberg
Copy link
Copy Markdown
Collaborator Author

I've modified the PR so they are now deprecated.

@github-actions github-actions Bot added area/hack building buildkit itself area/docs labels May 6, 2026
Copy link
Copy Markdown
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

@jsternberg check ci

Copy link
Copy Markdown
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

Add a // Deprecated: comment in the config.go field definitions.

Comment thread cmd/buildkitd/main.go Outdated
This adds a way to set the log level of buildkitd outside of using
`--debug` or `--trace` which allows increasing the log level rather than
only lowering it.

The `--debug` and `--trace` options are now deprecated along with the
configuration options. A warning will be printed to the log when they
are used.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
@tonistiigi tonistiigi merged commit 9a62e8d into moby:master May 6, 2026
226 of 227 checks passed
@jsternberg jsternberg deleted the log-verbosity branch May 6, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log verbosity configuration

2 participants