Skip to content
Snippets Groups Projects
Commit b243faa2 authored by Daniel Nelson's avatar Daniel Nelson Committed by GitHub
Browse files

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

fixes #2528
parent 8f5cd6c2
No related branches found
No related tags found
No related merge requests found
...@@ -112,6 +112,7 @@ be deprecated eventually. ...@@ -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 - [#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 - [#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 - [#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] ## v1.2.1 [2017-02-01]
......
...@@ -44,7 +44,6 @@ func (f *File) Connect() error { ...@@ -44,7 +44,6 @@ func (f *File) Connect() error {
for _, file := range f.Files { for _, file := range f.Files {
if file == "stdout" { if file == "stdout" {
writers = append(writers, os.Stdout) writers = append(writers, os.Stdout)
f.closers = append(f.closers, os.Stdout)
} else { } else {
var of *os.File var of *os.File
var err error var err error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment