Skip to content
This repository has been archived by the owner on Jul 16, 2019. It is now read-only.

Commit

Permalink
Provide more logging
Browse files Browse the repository at this point in the history
Signed-off-by: Knut Ahlers <knut@ahlers.me>
  • Loading branch information
Luzifer committed Nov 22, 2018
1 parent 0ffbe62 commit 5729037
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,7 @@ func main() {
log.WithError(err).Fatal("Unable to restore subscription db")
}

log.WithField("version", version).Info("rss-status operative")

log.WithError(http.ListenAndServe(cfg.Listen, nil)).Fatal("HTTP-Server quit unexpectedly")
}
5 changes: 5 additions & 0 deletions subdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ func newSubscriptionDB(p *pubsubhubbub.Publisher, db *bolt.DB) error {
return b.Delete(k)
}

log.WithFields(log.Fields{
"topic": topicURL,
"callback": callbackURL,
"lease_end": s.LeaseEnd,
}).Debug("Re-registering subscription")
return p.Register(topicURL, callbackURL, s.Secret, s.LeaseEnd)
})
}); err != nil {
Expand Down

0 comments on commit 5729037

Please sign in to comment.