Log when .env file is loaded
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
parra 2023-02-23 21:39:10 +01:00
parent 7f102790fa
commit a628f978e6
1 changed files with 2 additions and 2 deletions

View File

@ -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{