From b22fa2b43961777c9c063da23535489fe19079c6 Mon Sep 17 00:00:00 2001 From: Kiril Zvezdarov Date: Fri, 1 May 2015 15:14:41 -0400 Subject: [PATCH] Reordered the debug dump of configs to print them in order of precedence --- viper.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/viper.go b/viper.go index a148209..73bc6f3 100644 --- a/viper.go +++ b/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) }