Log when ABM terms have changed without requiring debug logging (#14712)

This commit is contained in:
Martin Angers 2023-10-24 09:51:34 -04:00 committed by GitHub
parent 508d65d49e
commit d0f276cd75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
* Modified logging of when the Apple Business Manager terms have changed so that it does not require debug logging.

View file

@ -598,7 +598,7 @@ func NewDEPClient(storage godep.ClientStorage, appCfgUpdater fleet.AppConfigUpda
if err := appCfgUpdater.SaveAppConfig(ctx, appCfg); err != nil {
level.Error(logger).Log("msg", "Apple DEP client: failed to save app config", "err", err)
}
level.Debug(logger).Log("msg", "Apple DEP client: updated app config Terms Expired flag",
level.Info(logger).Log("msg", "Apple DEP client: updated app config Terms Expired flag",
"apple_bm_terms_expired", appCfg.MDM.AppleBMTermsExpired)
}
}