Skip to content

Commit b338eb7

Browse files
committed
Improve logging
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 62bd361 commit b338eb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ func parseAppConfig(path string) (conf config.Config) {
9999

100100
conf = config.Config{}
101101

102-
log.Infof("reading configuration from file %v", path)
102+
log.WithField("path", path).Infof("reading configuration from file %v", path)
103103
if data, err := ioutil.ReadFile(path); err == nil {
104104
configRaw = data
105105
} else {
106106
panic(err)
107107
}
108108

109-
log.Info("parsing configuration")
109+
log.WithField("path", path).Info("parsing configuration")
110110
if err := yaml.Unmarshal(configRaw, &conf); err != nil {
111111
panic(err)
112112
}

0 commit comments

Comments
 (0)