Don't close stdout on config reload. (#2707)

fixes #2528
This commit is contained in:
Daniel Nelson 2017-04-24 16:18:58 -07:00 committed by GitHub
parent 8f5cd6c2ae
commit b243faa22b
2 changed files with 1 additions and 1 deletions

View File

@ -112,6 +112,7 @@ be deprecated eventually.
- [#2684](https://github.com/influxdata/telegraf/pull/2684): Fix ipmi_sensor config is shared between all plugin instances
- [#2450](https://github.com/influxdata/telegraf/issues/2450): Network statistics not collected when system has alias interfaces
- [#1911](https://github.com/influxdata/telegraf/issues/1911): Sysstat plugin needs LANG=C or similar locale
- [#2528](https://github.com/influxdata/telegraf/issues/2528): File output closes standard streams on reload.
## v1.2.1 [2017-02-01]

View File

@ -44,7 +44,6 @@ func (f *File) Connect() error {
for _, file := range f.Files {
if file == "stdout" {
writers = append(writers, os.Stdout)
f.closers = append(f.closers, os.Stdout)
} else {
var of *os.File
var err error