From 312ef8b8736e1aa992e5b3239a8d89c3621b77c0 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 24 Mar 2019 13:58:11 +0100 Subject: [PATCH] Remove publishing of expvars --- cmd/eksterd/hubbackend.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/eksterd/hubbackend.go b/cmd/eksterd/hubbackend.go index ca0f544..107bf30 100644 --- a/cmd/eksterd/hubbackend.go +++ b/cmd/eksterd/hubbackend.go @@ -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