From 4452a1484d306b8ab15e5cccedbfaa9341c19d03 Mon Sep 17 00:00:00 2001 From: Jon Ayers Date: Wed, 11 Oct 2023 02:32:50 -0500 Subject: [PATCH] fix: fix log spam related to skipping custom nice scores (#10206) --- agent/agent.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/agent/agent.go b/agent/agent.go index 109b4ad90c..7a50aa1fe1 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -1290,11 +1290,7 @@ func (a *agent) manageProcessPriority(ctx context.Context) ([]*agentproc.Process // Getpriority actually returns priority for the nice value // which is niceness + 20, so here 20 = a niceness of 0 (aka unset). if score != 20 { - if score != niceness { - logger.Debug(ctx, "skipping process due to custom niceness", - slog.F("niceness", score), - ) - } + // We don't log here since it can get spammy continue }