Log when .env file is loaded
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
parra 2023-02-23 21:39:10 +01:00
parent 7f102790fa
commit a628f978e6

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{