Make error loading tls config fatal in mysql input

This commit is contained in:
Daniel Nelson 2018-01-19 12:16:28 -08:00
parent 704c6c01eb
commit d1cbf4598c
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ func (m *Mysql) Gather(acc telegraf.Accumulator) error {
tlsConfig, err := internal.GetTLSConfig(m.SSLCert, m.SSLKey, m.SSLCA, false)
if err != nil {
log.Printf("E! MySQL Error registering TLS config: %s", err)
return fmt.Errorf("registering TLS config: %s", err)
}
if tlsConfig != nil {