Skip to content

Commit

Permalink
set default slog logger
Browse files Browse the repository at this point in the history
  • Loading branch information
dvush committed Nov 12, 2024
1 parent 77022ce commit e526f2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions common/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ func SetupLogger(opts *LoggingOpts) (log *slog.Logger) {
log = log.With("version", opts.Version)
}

slog.SetDefault(log)

return log
}
3 changes: 2 additions & 1 deletion proxy/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e526f2e

Please sign in to comment.