Remove 'inputs.' prefix when logging loaded inputs (#5489)

* Remove 'inputs.' prefix when logging loaded inputs

* Remove prefix from aggregators name
This commit is contained in:
Daniel Nelson 2019-02-26 18:31:43 -08:00 committed by GitHub
commit 598a79bf62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
}
@ -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
}