more tweeks

This commit is contained in:
Craig 2020-01-13 23:12:55 +00:00
parent c85abb3b63
commit 5830f92637
15 changed files with 81 additions and 118 deletions

View file

@ -8,7 +8,7 @@ import (
)
func Config(name string) {
config := viper.GetString("neko.config")
config := viper.GetString("config")
if config != "" {
viper.SetConfigFile(config) // Use config file from the flag.
@ -35,8 +35,8 @@ func Config(name string) {
file := viper.ConfigFileUsed()
logger := log.With().
Bool("debug", viper.GetBool("neko.debug")).
Str("logging", viper.GetString("neko.logs")).
Bool("debug", viper.GetBool("debug")).
Str("logging", viper.GetString("logs")).
Str("config", file).
Logger()