Don't panic when .env file cannot be loaded

This commit is contained in:
2024-03-09 17:31:11 -06:00
parent 0235473616
commit 5e31522491

View File

@@ -156,7 +156,7 @@ func main() {
// Load environment variables
if err := godotenv.Load(); err != nil {
log.WithField("error", err).Panic("Error loading .env file")
log.WithField("error", err).Warn("Failed to load .env file")
}
opt := &redis.Options{