Skip to content

Commit

Permalink
Merge pull request containers#18887 from Luap99/conmon-syslog
Browse files Browse the repository at this point in the history
libpod: make conmon always log to syslog
  • Loading branch information
openshift-merge-robot authored Jun 15, 2023
2 parents 7c76907 + 13c2aca commit 5b5b1cc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libpod/oci_conmon_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -1387,10 +1387,8 @@ func (r *ConmonOCIRuntime) sharedConmonArgs(ctr *Container, cuuid, bundlePath, p
logLevel := logrus.GetLevel()
args = append(args, "--log-level", logLevel.String())

if logLevel == logrus.DebugLevel {
logrus.Debugf("%s messages will be logged to syslog", r.conmonPath)
args = append(args, "--syslog")
}
logrus.Debugf("%s messages will be logged to syslog", r.conmonPath)
args = append(args, "--syslog")

size := r.logSizeMax
if ctr.config.LogSize > 0 {
Expand Down

0 comments on commit 5b5b1cc

Please sign in to comment.