mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 16:39:01 +00:00
Use info-level logging for cases where a custom enrollment profile is not found by fleetd (#15952)
This commit is contained in:
parent
9f7cf607bb
commit
f8d5253d8f
1 changed files with 7 additions and 1 deletions
|
|
@ -1008,8 +1008,14 @@ func main() {
|
|||
log.Info().Msg("checking for custom mdm enrollment profile with end user email")
|
||||
email, err := profiles.GetCustomEnrollmentProfileEndUserEmail()
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("get custom enrollment profile end user email")
|
||||
if errors.Is(err, profiles.ErrNotFound) {
|
||||
// This is fine. Many hosts will not have this profile so just log and continue.
|
||||
log.Info().Msg(fmt.Sprintf("get custom enrollment profile end user email: %s", err))
|
||||
} else {
|
||||
log.Error().Err(err).Msg("get custom enrollment profile end user email")
|
||||
}
|
||||
}
|
||||
|
||||
if email != "" {
|
||||
log.Info().Msg(fmt.Sprintf("found custom end user email: %s", email))
|
||||
if err := orbitClient.SetOrUpdateDeviceMappingEmail(email); err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue