Skip to content

Commit df71037

Browse files
committed
terminal: extract RPC proxy
To make the purpose and the flow of the RPC proxy more easy to understand, it is extracted into its own struct and cleaned up.
1 parent b36f8ae commit df71037

File tree

5 files changed

+511
-184
lines changed

5 files changed

+511
-184
lines changed

config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const (
2828
defaultHTTPSListen = "127.0.0.1:8443"
2929

3030
uiPasswordMinLength = 8
31+
32+
defaultLndMacaroon = "admin.macaroon"
3133
)
3234

3335
var (

log.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ func SetupLoggers(root *build.RotatingLogWriter) {
6767
lnd.AddSubLogger(root, "LNDC", lndclient.UseLogger)
6868
lnd.AddSubLogger(root, "STORE", loopdb.UseLogger)
6969
lnd.AddSubLogger(root, lsat.Subsystem, lsat.UseLogger)
70+
71+
// Setup the gRPC loggers too.
72+
grpclog.SetLoggerV2(NewGrpcLogLogger(root, GrpcLogSubsystem))
7073
}
7174

7275
// NewGrpcLogLogger creates a new grpclog compatible logger and attaches it as

0 commit comments

Comments
 (0)