From 27e08762500682f6f941d8e338edfe95eb9d116b Mon Sep 17 00:00:00 2001 From: tyiuhc Date: Thu, 25 Jul 2024 13:14:52 -0700 Subject: [PATCH] handle godotenv error with print --- pkg/experiment/local/client_eu_test.go | 2 +- pkg/experiment/local/client_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/experiment/local/client_eu_test.go b/pkg/experiment/local/client_eu_test.go index b4a01ff..ea21bc9 100644 --- a/pkg/experiment/local/client_eu_test.go +++ b/pkg/experiment/local/client_eu_test.go @@ -13,7 +13,7 @@ var clientEU *Client func init() { err := godotenv.Load() if err != nil { - log.Fatalf("Error loading .env file: %v", err) + log.Printf("Error loading .env file: %v", err) } projectApiKey := os.Getenv("EU_API_KEY") secretKey := os.Getenv("EU_SECRET_KEY") diff --git a/pkg/experiment/local/client_test.go b/pkg/experiment/local/client_test.go index 2cb346b..ee32125 100644 --- a/pkg/experiment/local/client_test.go +++ b/pkg/experiment/local/client_test.go @@ -13,7 +13,7 @@ var client *Client func init() { err := godotenv.Load() if err != nil { - log.Fatalf("Error loading .env file: %v", err) + log.Printf("Error loading .env file: %v", err) } projectApiKey := os.Getenv("API_KEY") secretKey := os.Getenv("SECRET_KEY")