diff --git a/config/config.go b/config/config.go index 2209419..223640d 100644 --- a/config/config.go +++ b/config/config.go @@ -1,9 +1,9 @@ package config import ( - "fmt" "os" + "github.com/gofiber/fiber/v2/log" "github.com/joho/godotenv" ) @@ -16,7 +16,7 @@ func init() { func GetEnv(name string, defVal string) string { env := os.Getenv(name) if env == "" { - fmt.Panicln("Missing " + name + " env variable") + log.Panicf("Missing %s env variable", name) } return env