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 {
|
func loadCfg() Config {
|
||||||
|
|
||||||
envErr := godotenv.Load()
|
envErr := godotenv.Load()
|
||||||
if envErr != nil {
|
if envErr == nil {
|
||||||
fmt.Printf("unable to load .env file: %e\n", envErr)
|
fmt.Printf("loaded .env file.")
|
||||||
}
|
}
|
||||||
|
|
||||||
conf := Config{
|
conf := Config{
|
||||||
|
|
Loading…
Reference in a new issue