diff --git a/pkg/monitor/monitor.go b/pkg/monitor/monitor.go index 5901167..2cdaeca 100644 --- a/pkg/monitor/monitor.go +++ b/pkg/monitor/monitor.go @@ -322,9 +322,12 @@ func (m *Subsystem) checkInbox() string { } `json:"data"` } if json.NewDecoder(httpResp.Body).Decode(&resp) != nil { + m.debugChannel("checkInbox: failed to decode response") return "" } + m.debugChannel(fmt.Sprintf("checkInbox: got %d messages", len(resp.Data))) + unread := 0 senders := make(map[string]int) latestSubject := ""