Skip to content
Snippets Groups Projects
Unverified Commit ef776f12 authored by Daniel Nelson's avatar Daniel Nelson
Browse files

Make error loading tls config fatal in mysql input

parent 5bac0866
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
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