Skip to content

Commit

Permalink
this moves the unable to load config file to the debug log (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates authored and stanislas-m committed Oct 3, 2018
1 parent 0910336 commit b73cc5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ func init() {
AddLookupPaths(ap)
}
if err := LoadConfigFile(); err != nil {
log(logging.Error, "Unable to load config file: %v", err)
// this is debug because there are a lot of cases where
// this being logged as an error is causes problems
// buffalo plugins, for one
// also, it's ok to not always have a config file, like
// in a new project where one hasn't be generated
log(logging.Debug, "Unable to load config file: %v", err)
}
}

Expand Down

0 comments on commit b73cc5d

Please sign in to comment.