Skip to content

Commit

Permalink
Log on info level when seed value is provided (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterklijn authored Mar 11, 2021
1 parent a1a50a9 commit 3d9958e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion seed/seed.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ func (s *Seeder) Seed(cfg *config.Config) error {
log.Infof("env var value %v applied on field %s", f, f.Name())
seedMap[f] = true
} else {
log.Warnf("env var %s did not exist for field %s", key, f.Name())
if seedMap[f] {
log.Infof("env var %s did not exist for field %s", key, f.Name())
} else {
log.Warnf("env var %s did not exist for field %s and no seed value provided", key, f.Name())
}
}
}
key, ok = ss[config.SourceFlag]
Expand Down

0 comments on commit 3d9958e

Please sign in to comment.