Move runtime config logging into separate function

This should only happen when needed, so moving this to a dedicated function that is called on startup
This commit is contained in:
Łukasz Mierzwa
2017-03-28 09:08:43 -07:00
parent f810ec31d8
commit fd7d3a3585
2 changed files with 3 additions and 0 deletions

View File

@@ -119,7 +119,9 @@ func (config *configEnvs) Read() {
if err != nil {
log.Fatal(err)
}
}
func (config *configEnvs) LogValues() {
s := reflect.ValueOf(config).Elem()
typeOfT := s.Type()
for i := 0; i < s.NumField(); i++ {

View File

@@ -85,6 +85,7 @@ func main() {
log.Infof("Version: %s", version)
config.Config.Read()
config.Config.LogValues()
transform.ParseRules(config.Config.JiraRegexp)
apiCache = cache.New(cache.NoExpiration, 10*time.Second)