config/cmd: secure broker (#1806)

* config/cmd: secure broker

* config/cmd: remove testing
This commit is contained in:
ben-toogood
2020-07-08 16:22:48 +01:00
committed by GitHub
parent ce12c040fa
commit 333320dcb8
2 changed files with 21 additions and 1 deletions

View File

@@ -131,6 +131,10 @@ func (n *natsBroker) Connect() error {
c, err := opts.Connect()
if err != nil {
if logger.V(logger.WarnLevel, logger.DefaultLogger) {
logger.Warnf("Error connecting to broker: %v", err)
}
return err
}
n.conn = c