containers / containers/toolbox

Run `toolbox init-container` with a higher or a adjustable log level

Open
#1,795 1 comment 0 reactions 0 assignees View on GitHub
1. Feature request
Dominant language
Go
Stars
3.5k
Forks
262
Avg merge
3d 1h
Merged PRs (30d)
1

Description

When a toolbox container is started e.g. on first use or after a host reboot, the container CMD instruction runs. This instruction is the `toolbox init-container` command. However, this command is always called with a log level of debug. This value looks hard coded (https://github.com/containers/toolbox/blob/main/src/cmd/create.go#L414). The log level used on toolbox creation with the `--log-level` flag has no effect.

This behavior bothers me because these logs are all registered as priority 3 (error) logs on the system journal as already discussed on another issue : #1381.

I would like this log level to be configurable or hard-coded to a higher level (such as error for example). It could follow the log level of the `toolbox create` invocation although this solution is not perfect.

I would be glad to provide more information on this or to submit a PR with a proposed solution.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.