Skip to content

Commit

Permalink
runenv: flush logger on close. (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Feb 11, 2020
1 parent 4f54bb4 commit 121b5ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/runtime/runenv.go
Expand Up @@ -119,6 +119,10 @@ func (re *RunEnv) Close() error {
close(re.structured)
close(re.unstructured)

if l := re.logger; l != nil {
_ = l.SLogger().Sync()
}

for l := range re.structured {
_ = l.Sync() // ignore errors.
}
Expand Down

0 comments on commit 121b5ea

Please sign in to comment.