@@ 41,8 41,13 @@ func NewKeypairReloader(certPath, keyPath string) (*keypairReloader, error) {
}
log.Printf("INFO: File modified %s, reloading TLS certificate and key from %q and %q", event.Name, certPath, keyPath)
if err := result.maybeReload(); err != nil {
- log.Printf("Keeping old TLS certificate because the new one could not be loaded: %v", err)
+ log.Printf("ERROR: Keeping old TLS certificate because the new one could not be loaded: %v", err)
}
+ case err, ok := <-watcher.Errors:
+ if !ok {
+ return
+ }
+ log.Println("ERROR:", err)
}
}
}()