kubernetes/cmd/kubelet
Patrick Ohly 4df70dfd41 component-base: initialize logging as soon as possible
In various places log messages where emitted as part of validation or even
before it (for example, cli.PrintFlags). Those log messages did not use the
final logging configuration, for example text output instead of JSON or not the
final verbosity. The last point became more obvious after moving the setup of
verbosity into logs.Options.Apply because PrintFlags never printed anything
anymore.

In order to force applications to deal with logging as soon as possible, the
Options.Validate and Options.Apply methods are now private. Applications should
use the new Options.ValidateAndApply directly after parsing.
2021-11-03 11:55:54 +01:00
..
app component-base: initialize logging as soon as possible 2021-11-03 11:55:54 +01:00
kubelet.go initialize logging after flag parsing 2021-09-30 13:46:49 +02:00
OWNERS SIG node owner files clean up 2020-07-07 00:22:05 +00:00