Log env file load errors
This commit is contained in:
@@ -3,12 +3,15 @@ package main
|
||||
|
||||
import (
|
||||
"mal/internal/app"
|
||||
"mal/internal/observability"
|
||||
|
||||
"github.com/joho/godotenv"
|
||||
)
|
||||
|
||||
func main() {
|
||||
_ = godotenv.Load()
|
||||
if err := godotenv.Load(); err != nil {
|
||||
observability.Warn("env_file_load_failed", "server", "", nil, err)
|
||||
}
|
||||
|
||||
application := app.NewApp()
|
||||
application.Run()
|
||||
|
||||
Reference in New Issue
Block a user