Skip to content

Commit

Permalink
clair: update for config package changes
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Nov 4, 2021
1 parent 69e53ba commit c1d51a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/clair/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ func main() {
golog.Fatalf("failed to decode yaml config: %v", err)
}
conf.Mode = runMode.Mode
_, err = config.Validate(&conf)
// Grab the warnings to print after the logger is configured.
ws, err := config.Validate(&conf)
if err != nil {
golog.Fatalf("failed to validate config: %v", err)
}
Expand All @@ -75,6 +76,10 @@ func main() {
zlog.Info(ctx).
Str("version", Version).
Msg("starting")
for _, w := range ws {
zlog.Info(ctx).
AnErr("lint", &w).Send()
}

// Some machinery for starting and stopping server goroutines:
down := &Shutdown{}
Expand Down

0 comments on commit c1d51a6

Please sign in to comment.