File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ type Configuration struct {
32
32
}
33
33
34
34
type redisConf struct {
35
- Host string `yaml:"Host" env:"REDIS_HOST "`
36
- Password string `yaml:"Password" env:"REDIS_PASSWORD "`
37
- DB int `yaml:"DB" env:"REDIS_DB "`
38
- MaxRetries int `yaml:"MaxRetries" env:"REDIS_MAX_RETRIES "`
39
- ReadTimeout string `yaml:"ReadTimeout" env:"REDIS_READ_TIMEOUT "`
40
- WriteTimeout string `yaml:"WriteTimeout" env:"REDIS_WRITE_TIMEOUT "`
35
+ Host string `yaml:"Host" env:"HOST "`
36
+ Password string `yaml:"Password" env:"PASSWORD "`
37
+ DB int `yaml:"DB" env:"DB "`
38
+ MaxRetries int `yaml:"MaxRetries" env:"MAX_RETRIES "`
39
+ ReadTimeout string `yaml:"ReadTimeout" env:"READ_TIMEOUT "`
40
+ WriteTimeout string `yaml:"WriteTimeout" env:"WRITE_TIMEOUT "`
41
41
}
42
42
43
43
type oAuthConf struct {
@@ -86,7 +86,7 @@ func ReadInConfig() error {
86
86
if err := envstruct .ApplyEnvVars (& Config , "GUS" ); err != nil {
87
87
return errors .Wrap (err , "could not apply environment configuration" )
88
88
}
89
- logrus .Info ("Loaded configuration: %v" , Config )
89
+ logrus .Infof ("Loaded configuration: %+ v" , Config )
90
90
Config .DataDir , err = filepath .Abs (Config .DataDir )
91
91
if err != nil {
92
92
return errors .Wrap (err , "could not get relative data dir path" )
You can’t perform that action at this time.
0 commit comments