From c780250f587bb0dca3c615216a0905c768733589 Mon Sep 17 00:00:00 2001 From: Jeremiah Buddenhagen Date: Mon, 10 Dec 2018 18:57:24 -0800 Subject: [PATCH] missing config files is not a fatal error --- config/config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 1b9bc6e..17243b8 100644 --- a/config/config.go +++ b/config/config.go @@ -1,7 +1,6 @@ package config import ( - "fmt" "os" "path/filepath" @@ -29,7 +28,7 @@ func init() { viper.AddConfigPath(".") err = viper.ReadInConfig() if err != nil { - panic(fmt.Errorf("Fatal error loading config file: %s \n", err)) + log.Error("error loading config file, utilizing defaults", logger.Attrs{"err": err}) } }