From b9db220e8c0bf2d6ff6b3ac1ba8db80cf4fb3b72 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 23 Aug 2018 19:48:21 -0700 Subject: [PATCH] config: properly show list of sub-systems for show debuglevel Fixes #1772. --- config.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.go b/config.go index 966b88fc6..32a5403da 100644 --- a/config.go +++ b/config.go @@ -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),