Skip to content

Commit

Permalink
Merge pull request #693 from notarock/master
Browse files Browse the repository at this point in the history
Remove circular dependency when logging configuration loading error
  • Loading branch information
muety authored Oct 15, 2024
2 parents 830f6c9 + 71b3fd0 commit 24044aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package config
import (
"encoding/json"
"fmt"
"log"
"net"
"net/http"
"os"
Expand Down Expand Up @@ -471,7 +472,7 @@ func Get() *Config {
func Load(configFlag string, version string) *Config {
config := &Config{}
if err := configor.New(&configor.Config{}).Load(config, configFlag); err != nil {
Log().Fatal("failed to read config", "error", err)
log.Fatal("failed to read config", err)
}

env = config.Env
Expand Down

0 comments on commit 24044aa

Please sign in to comment.