Skip to content

Commit

Permalink
Add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
nodauf committed Dec 13, 2021
1 parent c5353f0 commit 367dfa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/teams/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ func (options *Options) getPresence(mri, bearer string, log *logger.Logger) (str
}

json.Unmarshal([]byte(body), &status)
bytes, _ := json.MarshalIndent(status, "", " ")
log.Debug("Response: " + string(bytes))

if len(status) > 0 {
return status[0].Presence.Availability, status[0].Presence.DeviceType, status[0].Presence.CalendarData.OutOfOfficeNote.Message
Expand Down

0 comments on commit 367dfa3

Please sign in to comment.