mirror of
https://github.com/containers/podman.git
synced 2025-07-26 09:58:36 +08:00
Merge pull request #7754 from mheon/fix_logdriver_order
Fix a bug where log-driver json-file was made no logs
This commit is contained in:
@ -1330,10 +1330,10 @@ func (r *ConmonOCIRuntime) sharedConmonArgs(ctr *Container, cuuid, bundlePath, p
|
|||||||
switch logDriver {
|
switch logDriver {
|
||||||
case define.JournaldLogging:
|
case define.JournaldLogging:
|
||||||
logDriverArg = define.JournaldLogging
|
logDriverArg = define.JournaldLogging
|
||||||
case define.JSONLogging:
|
|
||||||
fallthrough
|
|
||||||
case define.NoLogging:
|
case define.NoLogging:
|
||||||
logDriverArg = define.NoLogging
|
logDriverArg = define.NoLogging
|
||||||
|
case define.JSONLogging:
|
||||||
|
fallthrough
|
||||||
default: //nolint-stylecheck
|
default: //nolint-stylecheck
|
||||||
// No case here should happen except JSONLogging, but keep this here in case the options are extended
|
// 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())
|
logrus.Errorf("%s logging specified but not supported. Choosing k8s-file logging instead", ctr.LogDriver())
|
||||||
|
Reference in New Issue
Block a user