mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Merge pull request #18887 from Luap99/conmon-syslog
libpod: make conmon always log to syslog
This commit is contained in:
@ -1387,10 +1387,8 @@ func (r *ConmonOCIRuntime) sharedConmonArgs(ctr *Container, cuuid, bundlePath, p
|
|||||||
logLevel := logrus.GetLevel()
|
logLevel := logrus.GetLevel()
|
||||||
args = append(args, "--log-level", logLevel.String())
|
args = append(args, "--log-level", logLevel.String())
|
||||||
|
|
||||||
if logLevel == logrus.DebugLevel {
|
|
||||||
logrus.Debugf("%s messages will be logged to syslog", r.conmonPath)
|
logrus.Debugf("%s messages will be logged to syslog", r.conmonPath)
|
||||||
args = append(args, "--syslog")
|
args = append(args, "--syslog")
|
||||||
}
|
|
||||||
|
|
||||||
size := r.logSizeMax
|
size := r.logSizeMax
|
||||||
if ctr.config.LogSize > 0 {
|
if ctr.config.LogSize > 0 {
|
||||||
|
Reference in New Issue
Block a user