Skip to content

Commit

Permalink
Log command UUID if it is present
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed May 7, 2022
1 parent 014aec3 commit 9448647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/nanomdm/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (s *Service) CommandAndReportResults(r *mdm.Request, results *mdm.CommandRe
logs := []interface{}{
"status", results.Status,
}
if results.Status != "Idle" {
if results.CommandUUID != "" {
logs = append(logs, "command_uuid", results.CommandUUID)
}
logger.Info(logs...)
Expand Down

0 comments on commit 9448647

Please sign in to comment.