From cde5c5b59d3bc6fd9776ea5e446a7964bf70502d Mon Sep 17 00:00:00 2001 From: MPins Date: Tue, 16 Jul 2024 09:54:26 -0300 Subject: [PATCH] lnd: Update the DebugLevel on main cfg --- rpcserver.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpcserver.go b/rpcserver.go index 7fef87326..7c2c06674 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -7061,6 +7061,9 @@ func (r *rpcServer) DebugLevel(ctx context.Context, return nil, err } + // Propagate the new config level to the main config struct. + r.cfg.DebugLevel = req.LevelSpec + return &lnrpc.DebugLevelResponse{}, nil }