log if env is being loaded

This commit is contained in:
jc 2024-02-25 02:11:27 -05:00
commit 7c4a6b030d
No known key found for this signature in database

View file

@ -21,6 +21,7 @@ type TemplateRenderer struct {
func main() { func main() {
// Load connection string from .env file // Load connection string from .env file
if os.Getenv("GO_ENV") != "production" { if os.Getenv("GO_ENV") != "production" {
fmt.Println("Loading env...")
err := godotenv.Load() err := godotenv.Load()
if err != nil { if err != nil {
log.Fatal("failed to load env", err) log.Fatal("failed to load env", err)