dovecot: remove extra newline from stats query
Extra newline in the stats query is interpreted as an empty query which is an error for dovecot.
This commit is contained in:
parent
d871e9aee7
commit
56171949e4
|
@ -85,7 +85,7 @@ func (d *Dovecot) gatherServer(addr string, acc telegraf.Accumulator, doms map[s
|
||||||
// Extend connection
|
// Extend connection
|
||||||
c.SetDeadline(time.Now().Add(defaultTimeout))
|
c.SetDeadline(time.Now().Add(defaultTimeout))
|
||||||
|
|
||||||
c.Write([]byte("EXPORT\tdomain\n\n"))
|
c.Write([]byte("EXPORT\tdomain\n"))
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
io.Copy(&buf, c)
|
io.Copy(&buf, c)
|
||||||
// buf := bufio.NewReader(c)
|
// buf := bufio.NewReader(c)
|
||||||
|
|
Loading…
Reference in New Issue