Skip to content

Commit

Permalink
missing config files is not a fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
bitspill committed Dec 11, 2018
1 parent f5ec0ac commit c780250
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package config

import (
"fmt"
"os"
"path/filepath"

Expand Down Expand Up @@ -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})
}
}

Expand Down

0 comments on commit c780250

Please sign in to comment.