mirror of
https://github.com/containers/podman.git
synced 2025-05-20 16:47:39 +08:00
Fix a bug where log-driver json-file was made no logs
When we added the None log driver, it was accidentally added in the middle of a set of Fallthrough stanzas which all should have led to k8s-file, so that JSON file logging accidentally caused no logging to be selected instead of k8s-file. Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
@ -1330,10 +1330,10 @@ func (r *ConmonOCIRuntime) sharedConmonArgs(ctr *Container, cuuid, bundlePath, p
|
||||
switch logDriver {
|
||||
case define.JournaldLogging:
|
||||
logDriverArg = define.JournaldLogging
|
||||
case define.JSONLogging:
|
||||
fallthrough
|
||||
case define.NoLogging:
|
||||
logDriverArg = define.NoLogging
|
||||
case define.JSONLogging:
|
||||
fallthrough
|
||||
default: //nolint-stylecheck
|
||||
// No case here should happen except JSONLogging, but keep this here in case the options are extended
|
||||
logrus.Errorf("%s logging specified but not supported. Choosing k8s-file logging instead", ctr.LogDriver())
|
||||
|
Reference in New Issue
Block a user