Adding logging level to frequent server log messages. (#18486)

This commit is contained in:
Victor Lyuboslavsky 2024-04-24 20:52:31 -05:00 committed by GitHub
parent 78fbcb8f28
commit edf290bf54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -2819,7 +2819,7 @@ func ReconcileAppleDeclarations(
}
if len(changedHosts) == 0 {
logger.Log("msg", "no hosts with changed declarations")
level.Info(logger).Log("msg", "no hosts with changed declarations")
return nil
}
@ -2828,7 +2828,7 @@ func ReconcileAppleDeclarations(
return ctxerr.Wrap(ctx, err, "issuing DeclarativeManagement command")
}
logger.Log("msg", "sent DeclarativeManagement command", "host_number", len(changedHosts))
level.Info(logger).Log("msg", "sent DeclarativeManagement command", "host_number", len(changedHosts))
return nil
}

View file

@ -384,7 +384,7 @@ func ProcessDEPCooldowns(ctx context.Context, ds fleet.Datastore, logger kitlog.
return ctxerr.Wrap(ctx, err, "getting cooldowns")
}
if len(serialsByTeamId) == 0 {
logger.Log("msg", "no cooldowns to process")
level.Info(logger).Log("msg", "no cooldowns to process")
return nil
}
@ -394,7 +394,7 @@ func ProcessDEPCooldowns(ctx context.Context, ds fleet.Datastore, logger kitlog.
logger.Log("msg", "no cooldowns", "team_id", teamID)
continue
}
logger.Log("msg", "processing cooldowns", "team_id", teamID, "serials", serials)
level.Info(logger).Log("msg", "processing cooldowns", "team_id", teamID, "serials", serials)
var tid *uint
if teamID != 0 {