Only warn if the .env file can not be loaded (#29)

.env files should be optional in a production environment it is likely that the env variables are set explicitely and not through a file
This commit is contained in:
Michael Bumann
2022-01-16 15:10:27 +02:00
committed by GitHub
parent 628071160c
commit 8bc060697f

View File

@@ -33,7 +33,7 @@ func main() {
var c Config
err := godotenv.Load(".env")
if err != nil {
logrus.Fatal("failed to get env value")
logrus.Warn("Failed to load .env file")
}
err = envconfig.Process("", &c)