mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Adding logging level to frequent server log messages. (#18486)
This commit is contained in:
parent
78fbcb8f28
commit
edf290bf54
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue