Skip to content

Commit

Permalink
Add extra debugging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfonso Acosta committed Aug 15, 2016
1 parent c57cafb commit 97b62a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Expand Up @@ -138,6 +138,11 @@ func (a arriba) retrieveChannelStandup(c conversation) (channelStandup, error) {
// of traversing the whole history, but that's not allowed for bots :(
cstandup := make(channelStandup)
for {
logrus.Debugf(
"Requesting history for conversation %s with parameters %#v",
c.getID(),
params)

history, error := c.getHistory(a.rtm, params)
if error != nil || history == nil || len(history.Messages) == 0 {
return cstandup, error
Expand Down

0 comments on commit 97b62a1

Please sign in to comment.