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 5bac08662e
commit ef776f120b
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
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 {