config: properly show list of sub-systems for show debuglevel
Fixes #1772.
This commit is contained in:
parent
de92dac6a8
commit
b9db220e8c
@ -788,6 +788,12 @@ func loadConfig() (*config, error) {
|
||||
registeredChains.PrimaryChain().String(),
|
||||
normalizeNetwork(activeNetParams.Name))
|
||||
|
||||
// Special show command to list supported subsystems and exit.
|
||||
if cfg.DebugLevel == "show" {
|
||||
fmt.Println("Supported subsystems", supportedSubsystems())
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
// Initialize logging at the default logging level.
|
||||
initLogRotator(
|
||||
filepath.Join(cfg.LogDir, defaultLogFilename),
|
||||
|
Loading…
Reference in New Issue
Block a user