mirror of
https://github.com/Xevion/r2park.git
synced 2025-12-15 16:12:42 -06:00
Don't panic when .env file cannot be loaded
This commit is contained in:
2
main.go
2
main.go
@@ -156,7 +156,7 @@ func main() {
|
|||||||
|
|
||||||
// Load environment variables
|
// Load environment variables
|
||||||
if err := godotenv.Load(); err != nil {
|
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{
|
opt := &redis.Options{
|
||||||
|
|||||||
Reference in New Issue
Block a user