Skip to content

Commit 367dfa3

Browse files
committed
Add debug log
1 parent c5353f0 commit 367dfa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/teams/utils.go

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ func (options *Options) getPresence(mri, bearer string, log *logger.Logger) (str
5151
}
5252

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

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

0 commit comments

Comments
 (0)