Skip to content

Commit 4452a14

Browse files
authored
fix: fix log spam related to skipping custom nice scores (#10206)
1 parent 7c71053 commit 4452a14

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

agent/agent.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -1290,11 +1290,7 @@ func (a *agent) manageProcessPriority(ctx context.Context) ([]*agentproc.Process
12901290
// Getpriority actually returns priority for the nice value
12911291
// which is niceness + 20, so here 20 = a niceness of 0 (aka unset).
12921292
if score != 20 {
1293-
if score != niceness {
1294-
logger.Debug(ctx, "skipping process due to custom niceness",
1295-
slog.F("niceness", score),
1296-
)
1297-
}
1293+
// We don't log here since it can get spammy
12981294
continue
12991295
}
13001296

0 commit comments

Comments
 (0)