nats: Don't enable debug and trace logging by default
Only enable trace and/or debug logging when the outer logger has the log level set accordingly. Even when the though the messages where not really logged the nats service wasted quite some cycles especially in the trace log related code path. Related issue: #716
This commit is contained in:
@@ -78,7 +78,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
}
|
||||
natsServer, err := nats.NewNATSServer(
|
||||
ctx,
|
||||
logging.NewLogWrapper(logger),
|
||||
logger,
|
||||
nats.Host(cfg.Nats.Host),
|
||||
nats.Port(cfg.Nats.Port),
|
||||
nats.ClusterID(cfg.Nats.ClusterID),
|
||||
|
||||
Reference in New Issue
Block a user