From 24527859e68652551f56191f5f4a4f5270459097 Mon Sep 17 00:00:00 2001 From: Josh Palay Date: Wed, 23 Sep 2015 14:45:06 -0700 Subject: [PATCH] Fix printf format issue Closes #227 --- CHANGELOG.md | 1 + plugins/exec/exec.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7949ea01c..caaaef7ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - [#226](https://github.com/influxdb/telegraf/pull/226): Add timestamps to points in Kafka/AMQP outputs. Thanks @ekini - [#90](https://github.com/influxdb/telegraf/issues/90): Add Docker labels to tags in docker plugin - [#223](https://github.com/influxdb/telegraf/pull/223): Add port tag to nginx plugin. Thanks @neezgee! +- [#227](https://github.com/influxdb/telegraf/pull/227): Add command intervals to exec plugin. Thanks @jpalay! ### Bugfixes diff --git a/plugins/exec/exec.go b/plugins/exec/exec.go index c9d115312..d37f36c72 100644 --- a/plugins/exec/exec.go +++ b/plugins/exec/exec.go @@ -63,7 +63,7 @@ func (c CommandRunner) Run(command *Command) ([]byte, error) { cmd.Stdout = &out if err := cmd.Run(); err != nil { - return nil, fmt.Errorf("exec: %s for command '%s'", err, command) + return nil, fmt.Errorf("exec: %s for command '%s'", err, command.Command) } return out.Bytes(), nil