From 351506f318d32689f402368068d58951f6bb84c1 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Mon, 22 Feb 2016 11:40:27 -0700 Subject: [PATCH] Set running output quiet mode in agent connect func closes #701 --- CHANGELOG.md | 1 + agent/agent.go | 2 ++ internal/config/config.go | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a55c029c..b85e200a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - [#694](https://github.com/influxdata/telegraf/pull/694): DNS Query input, thanks @mjasion! ### Bugfixes +- [#701](https://github.com/influxdata/telegraf/pull/701): output write count shouldnt print in quiet mode. ## v0.10.3 [2016-02-18] diff --git a/agent/agent.go b/agent/agent.go index 42ade45f2..8a8800cc2 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -44,6 +44,8 @@ func NewAgent(config *config.Config) (*Agent, error) { // Connect connects to all configured outputs func (a *Agent) Connect() error { for _, o := range a.Config.Outputs { + o.Quiet = a.Config.Agent.Quiet + switch ot := o.Output.(type) { case telegraf.ServiceOutput: if err := ot.Start(); err != nil { diff --git a/internal/config/config.go b/internal/config/config.go index fc374d628..2dfe13580 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -429,7 +429,6 @@ func (c *Config) addOutput(name string, table *ast.Table) error { ro.MetricBufferLimit = c.Agent.MetricBufferLimit } ro.FlushBufferWhenFull = c.Agent.FlushBufferWhenFull - ro.Quiet = c.Agent.Quiet c.Outputs = append(c.Outputs, ro) return nil }