{"action":"opened","issue":{"url":"https://api.github.com/repos/lightningnetwork/lnd/issues/1772","repository_url":"https://api.github.com/repos/lightningnetwork/lnd","labels_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/1772/labels{/name}","comments_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/1772/comments","events_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/1772/events","html_url":"https://github.com/lightningnetwork/lnd/issues/1772","id":353444662,"node_id":"MDU6SXNzdWUzNTM0NDQ2NjI=","number":1772,"title":"debuglevel=show does not work","user":{"login":"torkelrogstad","id":16610775,"node_id":"MDQ6VXNlcjE2NjEwNzc1","avatar_url":"https://avatars2.githubusercontent.com/u/16610775?v=4","gravatar_id":"","url":"https://api.github.com/users/torkelrogstad","html_url":"https://github.com/torkelrogstad","followers_url":"https://api.github.com/users/torkelrogstad/followers","following_url":"https://api.github.com/users/torkelrogstad/following{/other_user}","gists_url":"https://api.github.com/users/torkelrogstad/gists{/gist_id}","starred_url":"https://api.github.com/users/torkelrogstad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torkelrogstad/subscriptions","organizations_url":"https://api.github.com/users/torkelrogstad/orgs","repos_url":"https://api.github.com/users/torkelrogstad/repos","events_url":"https://api.github.com/users/torkelrogstad/events{/privacy}","received_events_url":"https://api.github.com/users/torkelrogstad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-23T15:51:03Z","updated_at":"2018-08-23T15:51:03Z","closed_at":null,"author_association":"NONE","body":"### Background\r\nIt's not possible to show the available subsystems when specifying `debuglevel`. \r\n\r\nAlso, there a typo in `sample-lnd.conf`. On line 109 it says `btcd`, I assume this is meant to be `lnd`.\r\n\r\n### Your environment\r\n* version of `lnd`\r\n```\r\n$ lnd --version\r\nlnd version 0.4.2-beta commit=47788c3ceca098d4cf6559fc847a93e86bd89094\r\n```\r\n* which operating system (`uname -a` on *Nix)\r\n```\r\n$ uname -a \r\nLinux torkel-XPS13 4.15.0-32-generic #35-Ubuntu SMP Fri Aug 10 17:58:07 UTC 2018 x86_64 GNU/Linux\r\n```\r\n\r\n* version of `btcd`, `bitcoind`, or other backend\r\nNot really relevant as this error happens before `lnd` connects to any backend, but for completeness sake:\r\n```\r\n$ btcd --version\r\nbtcd version 0.12.0-beta\r\n```\r\n\r\n* any other relevant environment details\r\n\r\n```\r\n$ go version\r\ngo version go1.10.1 linux/amd64\r\n```\r\n\r\n### Steps to reproduce\r\n\r\nWith an empty `lnd.conf`, run:\r\n```\r\n$ lnd --bitcoin.active --bitcoin.mainnet --debuglevel=show\r\n```\r\n\r\n### Expected behaviour\r\n\r\nA list of available subsystem logging options should be printed. From `lnd -h`:\r\n```\r\nLogging level for all subsystems {trace, debug, info, warn, error, critical} \r\nYou may also specify <subsystem>=<level>,<subsystem2>=<level>,... \r\nto set the log level for individual subsystems \r\nUse show to list available subsystems (default: info)\r\n```\r\n\r\n### Actual behaviour\r\n```\r\n$ lnd --bitcoin.active --bitcoin.mainnet --debuglevel=show\r\nAttempting automatic RPC configuration to btcd\r\nAutomatically obtained btcd's RPC credentials\r\nloadConfig: The specified debug level [show] is invalid\r\nUse lnd -h to show usage\r\n2018-08-23 17:42:23.728 [INF] LTND: Shutdown complete\r\nloadConfig: The specified debug level [show] is invalid\r\n```\r\n\r\n\r\nI'm no Go expert, but looking through the code in `config.go` (`validLogLevel` and `parseAndSetDebugLevels`), it seems like there's no check for the string \"show\" being passed as an option. I'm guessing this is happening because of accidentally copying some (but not all) code from `btcd`? "}}
{"actor":{"display_login":"torkelrogstad"}}