Make the router public.

This commit is contained in:
Cyril Duez
2016-05-27 10:19:33 +02:00
parent 580dc733ee
commit b95244cd65
2 changed files with 3 additions and 7 deletions

View File

@@ -342,7 +342,7 @@ func (a *Agent) Run(shutdown chan struct{}) error {
defer p.Stop()
case telegraf.WebhookInput:
acc := createAccumulatorForInput(a, input, metricC)
if err := p.Register(webserver.Router(), acc); err != nil {
if err := p.Register(webserver.Router, acc); err != nil {
log.Printf("Webhook for input %s failed to start, exiting\n%s\n",
input.Name, err.Error())
return err