From 6ff98da9858462f6c741751c307157d8ba383d86 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Mon, 24 Apr 2017 16:18:58 -0700 Subject: [PATCH] Don't close stdout on config reload. (#2707) fixes #2528 --- CHANGELOG.md | 1 + plugins/outputs/file/file.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 775933713..9fdfbc32d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] diff --git a/plugins/outputs/file/file.go b/plugins/outputs/file/file.go index e05d0fe83..41605213e 100644 --- a/plugins/outputs/file/file.go +++ b/plugins/outputs/file/file.go @@ -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