multi: rename and export logWriter as RootLogWriter

This commit is contained in:
Oliver Gugger committed 2020-05-14 14:37:50 +02:00
1 parent a56ca0d0cf
commit bc3909050e
4 files changed
+20 -18

No files matched your search

+2 -2
View File
@@ -5220,7 +5220,7 @@ func (r *rpcServer) DebugLevel(ctx context.Context,
if req.Show {
return &lnrpc.DebugLevelResponse{
SubSystems: strings.Join(
logWriter.SupportedSubsystems(), " ",
RootLogWriter.SupportedSubsystems(), " ",
),
}, nil
}
@@ -5229,7 +5229,7 @@ func (r *rpcServer) DebugLevel(ctx context.Context,
// Otherwise, we'll attempt to set the logging level using the
// specified level spec.
err := build.ParseAndSetDebugLevels(req.LevelSpec, logWriter)
err := build.ParseAndSetDebugLevels(req.LevelSpec, RootLogWriter)
if err != nil {
return nil, err
}