Fix printf format issue

Closes #227
This commit is contained in:
Josh Palay 2015-09-23 14:45:06 -07:00 committed by Cameron Sparr
parent 0c6c5718fe
commit 24527859e6
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
- [#226](https://github.com/influxdb/telegraf/pull/226): Add timestamps to points in Kafka/AMQP outputs. Thanks @ekini - [#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 - [#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! - [#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 ### Bugfixes

View File

@ -63,7 +63,7 @@ func (c CommandRunner) Run(command *Command) ([]byte, error) {
cmd.Stdout = &out cmd.Stdout = &out
if err := cmd.Run(); err != nil { 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 return out.Bytes(), nil