multi: log warnings if deprecated config options are used

This commit adds warning logs if the user uses deprecated config
options, paving the way for future removal.
This commit is contained in:
yyforyongyu committed 2024-02-01 21:20:11 +08:00
1 parent 7d74165296
commit 157c84cc4d
4 files changed
+45 -8

No files matched your search

+1 -1
View File
@@ -3054,7 +3054,7 @@ func (r *rpcServer) GetInfo(_ context.Context,
func (r *rpcServer) GetDebugInfo(_ context.Context,
_ *lnrpc.GetDebugInfoRequest) (*lnrpc.GetDebugInfoResponse, error) {
flatConfig, err := configToFlatMap(*r.cfg)
flatConfig, _, err := configToFlatMap(*r.cfg)
if err != nil {
return nil, fmt.Errorf("error converting config to flat map: "+
"%w", err)