From a628f978e61e7cc2de3493b91b630e0274732dbe Mon Sep 17 00:00:00 2001 From: parra Date: Thu, 23 Feb 2023 21:39:10 +0100 Subject: [PATCH] Log when .env file is loaded --- cmd/drone-ntfy/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/drone-ntfy/main.go b/cmd/drone-ntfy/main.go index 245f2e4..bf78cf4 100644 --- a/cmd/drone-ntfy/main.go +++ b/cmd/drone-ntfy/main.go @@ -29,8 +29,8 @@ func main() { func loadCfg() Config { envErr := godotenv.Load() - if envErr != nil { - fmt.Printf("unable to load .env file: %e\n", envErr) + if envErr == nil { + fmt.Printf("loaded .env file.") } conf := Config{