From 9fb64cfc204c4dee3c598b080a55a74655a729fa Mon Sep 17 00:00:00 2001 From: Jon Ayers Date: Wed, 11 Oct 2023 07:24:55 +0000 Subject: [PATCH] fix: fix log spam related to skipping custom nice scores --- agent/agent.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/agent/agent.go b/agent/agent.go index 109b4ad90c1ec..7a50aa1fe1756 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 }