diff --git a/common/logging.go b/common/logging.go index ff2949c..35aab63 100644 --- a/common/logging.go +++ b/common/logging.go @@ -33,5 +33,7 @@ func SetupLogger(opts *LoggingOpts) (log *slog.Logger) { log = log.With("version", opts.Version) } + slog.SetDefault(log) + return log } diff --git a/proxy/utils.go b/proxy/utils.go index 7db2e08..0bf3587 100644 --- a/proxy/utils.go +++ b/proxy/utils.go @@ -42,7 +42,8 @@ func HTTPClientWithMaxConnections(maxOpenConnections int) *http.Client { } } -func RPCClientWithCertAndSigner(endpoint string, certPEM []byte, signer *signature.Signer, maxOpenConnections int) (rpcclient.RPCClient, error) { //nolint:ireturn +//nolint:ireturn +func RPCClientWithCertAndSigner(endpoint string, certPEM []byte, signer *signature.Signer, maxOpenConnections int) (rpcclient.RPCClient, error) { transport, err := createTransportForSelfSignedCert(certPEM) if err != nil { return nil, err