warrensbox/terraform-switcher

`log-level` TOML config doesn't work

Closed this issue · 1 comments

Ref:

> fgrep log ~/.tfswitch.toml
log-level = "DEBUG"

> tfswitch --version
18:55:57.119 INFO Reading configuration from "/home/giermulnik/.tfswitch.toml"
Version: v1.1.1

> tfswitch --version -g DEBUG
18:55:59.475 INFO [toml.go:15,getParamsTOML] Reading configuration from "/home/giermulnik/.tfswitch.toml"
Version: v1.1.1

#429 will probably resolve this as the issue might be related to params from TOML file being overwritten by other means of params retrieval: https://github.com/warrensbox/terraform-switcher/blob/master/lib/param_parsing/parameters.go#L55-L79