Skip to content

Commit

Permalink
Fix printf format issue
Browse files Browse the repository at this point in the history
Closes #227
  • Loading branch information
Josh Palay authored and sparrc committed Sep 23, 2015
1 parent 0c6c571 commit 2452785
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion plugins/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2452785

Please sign in to comment.