Remove publishing of expvars
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2019-03-24 13:58:11 +01:00
parent 6d51145dad
commit 312ef8b873
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -60,10 +60,6 @@ func init() {
subscribeRuns = expvar.NewInt("subscribe.runs")
resubscriptions = expvar.NewInt("subscribe.calls")
resubscribeErrors = expvar.NewInt("subscribe.errors")
expvar.Publish("subscribe.runs", subscribeRuns)
expvar.Publish("subscribe.calls", resubscriptions)
expvar.Publish("subscribe.errors", resubscribeErrors)
}
func (h *hubIncomingBackend) GetSecret(id int64) string {
@ -137,7 +133,7 @@ func (h *hubIncomingBackend) UpdateFeed(feedID int64, contentType string, body i
log.Printf("Updating feed %d - %s %s\n", feedID, u, channel)
err = h.backend.ProcessContent(channel, u, contentType, body)
if err != nil {
log.Printf("Error while updating content for channel %s: %s", channel, err)
log.Printf("could not process content for channel %s: %s", channel, err)
}
return err