Skip to content

Commit

Permalink
Fix config init order
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliqun committed May 6, 2024
1 parent 913e045 commit dab3ffd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ func MustInit(viperEnvPrefix string) {
// init viper from config file or env var
viper.MustInit(viperEnvPrefix)

// init logging from viper
log.MustInitFromViper()
// init alert from viper
alert.MustInitFromViper()

// init metrics from viper
metrics.MustInitFromViper()

// init alert from viper
alert.MustInitFromViper()
// init logging from viper
log.MustInitFromViper()
}

0 comments on commit dab3ffd

Please sign in to comment.