@@ -860,6 +860,18 @@ func LoadConfig(interceptor signal.Interceptor) (*Config, error) {
860860func ValidateConfig (cfg Config , interceptor signal.Interceptor , fileParser ,
861861 flagParser * flags.Parser ) (* Config , error ) {
862862
863+ // Special show command to list supported subsystems and exit.
864+ if cfg .DebugLevel == "show" {
865+ subLogMgr := build .NewSubLoggerManager ()
866+
867+ // Initialize logging at the default logging level.
868+ SetupLoggers (subLogMgr , interceptor )
869+
870+ fmt .Println ("Supported subsystems" ,
871+ subLogMgr .SupportedSubsystems ())
872+ os .Exit (0 )
873+ }
874+
863875 // If the provided lnd directory is not the default, we'll modify the
864876 // path to all of the files and directories that will live within it.
865877 lndDir := CleanAndExpandPath (cfg .LndDir )
@@ -1249,7 +1261,7 @@ func ValidateConfig(cfg Config, interceptor signal.Interceptor, fileParser,
12491261 // The target network must be provided, otherwise, we won't
12501262 // know how to initialize the daemon.
12511263 if numNets == 0 {
1252- str := "either --bitcoin.mainnet, or bitcoin.testnet," +
1264+ str := "either --bitcoin.mainnet, or bitcoin.testnet, " +
12531265 "bitcoin.simnet, bitcoin.regtest or bitcoin.signet " +
12541266 "must be specified"
12551267
@@ -1408,13 +1420,6 @@ func ValidateConfig(cfg Config, interceptor signal.Interceptor, fileParser,
14081420 // Initialize logging at the default logging level.
14091421 SetupLoggers (cfg .SubLogMgr , interceptor )
14101422
1411- // Special show command to list supported subsystems and exit.
1412- if cfg .DebugLevel == "show" {
1413- fmt .Println ("Supported subsystems" ,
1414- cfg .SubLogMgr .SupportedSubsystems ())
1415- os .Exit (0 )
1416- }
1417-
14181423 if cfg .MaxLogFiles != 0 {
14191424 if cfg .LogConfig .File .MaxLogFiles !=
14201425 build .DefaultMaxLogFiles {
0 commit comments