Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
logging: Fix structured logging in store package
Browse files Browse the repository at this point in the history
Call the `store` packages `SetLogger()` function to ensure all its log
records contain all required structured logging fields.

Fixes: #2644.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel authored and amshinde committed Jun 3, 2020
1 parent cee6322 commit 346f71b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions virtcontainers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func SetLogger(ctx context.Context, logger *logrus.Entry) {
deviceApi.SetLogger(virtLog)
store.SetLogger(virtLog)
compatoci.SetLogger(virtLog)
store.SetLogger(virtLog)
}

// CreateSandbox is the virtcontainers sandbox creation entry point.
Expand Down

0 comments on commit 346f71b

Please sign in to comment.