mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 22:50:58 +02:00
config+lnd+rpcserver: use log writer from cfg
This commit is contained in:
2
lnd.go
2
lnd.go
@@ -190,7 +190,7 @@ type rpcListeners func() ([]*ListenerWithSignal, func(), error)
|
||||
func Main(cfg *Config, lisCfg ListenerCfg, shutdownChan <-chan struct{}) error {
|
||||
defer func() {
|
||||
ltndLog.Info("Shutdown complete")
|
||||
err := RootLogWriter.Close()
|
||||
err := cfg.LogWriter.Close()
|
||||
if err != nil {
|
||||
ltndLog.Errorf("Could not close log rotator: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user