From 8d90609198ab90b8ee07a2268b8fcd8994bf19f3 Mon Sep 17 00:00:00 2001 From: Greg Linton Date: Tue, 26 Feb 2019 17:03:13 -0700 Subject: [PATCH 1/2] Remove 'inputs.' prefix when logging loaded inputs --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index 4388d658d..557fdd5fa 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -151,7 +151,7 @@ type AgentConfig struct { func (c *Config) InputNames() []string { var name []string for _, input := range c.Inputs { - name = append(name, input.Name()) + name = append(name, input.Config.Name) } return name } From 03f40b35884e957665bcc07eeeb0eea6ac2e2d38 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Tue, 26 Feb 2019 18:22:12 -0800 Subject: [PATCH 2/2] Remove prefix from aggregators name --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index 557fdd5fa..28d683cc5 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -160,7 +160,7 @@ func (c *Config) InputNames() []string { func (c *Config) AggregatorNames() []string { var name []string for _, aggregator := range c.Aggregators { - name = append(name, aggregator.Name()) + name = append(name, aggregator.Config.Name) } return name }