mirror of
https://github.com/spf13/viper
synced 2024-12-22 11:37:02 +00:00
Reordered the debug dump of configs to print them in order of precedence
This commit is contained in:
parent
c174e2427c
commit
b22fa2b439
1 changed files with 10 additions and 10 deletions
20
viper.go
20
viper.go
|
@ -914,18 +914,18 @@ func (v *Viper) findConfigFile() (string, error) {
|
|||
// purposes.
|
||||
func Debug() { v.Debug() }
|
||||
func (v *Viper) Debug() {
|
||||
fmt.Println("Config:")
|
||||
pretty.Println(v.config)
|
||||
fmt.Println("Key/Value Store:")
|
||||
pretty.Println(v.kvstore)
|
||||
fmt.Println("Env:")
|
||||
pretty.Println(v.env)
|
||||
fmt.Println("Defaults:")
|
||||
pretty.Println(v.defaults)
|
||||
fmt.Println("Override:")
|
||||
pretty.Println(v.override)
|
||||
fmt.Println("Aliases:")
|
||||
pretty.Println(v.aliases)
|
||||
fmt.Println("Override:")
|
||||
pretty.Println(v.override)
|
||||
fmt.Println("PFlags")
|
||||
pretty.Println(v.pflags)
|
||||
fmt.Println("Env:")
|
||||
pretty.Println(v.env)
|
||||
fmt.Println("Key/Value Store:")
|
||||
pretty.Println(v.kvstore)
|
||||
fmt.Println("Config:")
|
||||
pretty.Println(v.config)
|
||||
fmt.Println("Defaults:")
|
||||
pretty.Println(v.defaults)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue