Log when .env file is loaded
This commit is contained in:
parent
7f102790fa
commit
a628f978e6
1 changed files with 2 additions and 2 deletions
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue