Skip to content

Commit cde1dd5

Browse files
Put start/exec/create/remove events in debug to lower log spam
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
1 parent 1800b10 commit cde1dd5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

api/server/middleware/audit_linux.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,13 @@ func logAction(w http.ResponseWriter, r *http.Request, d *daemon.Daemon) error {
258258
message = fmt.Sprintf("ID=%v, %s", c.ID, message)
259259
}
260260
message = fmt.Sprintf("{Action=%v, %s}", action, message)
261-
// Log info messages at Debug Level
262-
// Log messages that change state at Info level
261+
// Log messages at Debug Level
262+
// Log messages that change state in Audit log
263263
switch action {
264-
case "start", "exec", "create", "remove", "history", "events", "stats", "search", "json", "version", "images", "info":
264+
case "history", "events", "stats", "search", "json", "version", "images", "info":
265265
logrus.Debug(message)
266266
default:
267-
logrus.Info(message)
267+
logrus.Debug(message)
268268
logAuditlog(c, action, username, loginuid, true)
269269
}
270270
return nil

0 commit comments

Comments
 (0)