Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libcontainerd/supervisor: set log-level through the config-file
The config.logLevel field, when set, is used to set the `--log-level` flag when starting the managed `containerd` binary. This flag is the equivalent to setting the `Config.Debug.Level` field, as can be seen in the [`md/containerd/command.setLogLevel()`][1] function. As we're already producing a generated containerd configuration file, and this file already includes `Debug` options, we might as well include the option in that file, instead of using the `--log-level` flag. For entertainment of whoever reads this commit-message, it's worth noting that previously we were writing this option to the config-file, and yours truly removed that part in b6b0b0a, but to my defence, we were _also_ setting the `--log-level` flag at the time :) [1]: https://github.com/containerd/containerd/blob/v1.7.20/cmd/containerd/command/main.go#L348-L357 Signed-off-by: Sebastiaan van Stijn <[email protected]>
- Loading branch information