Skip to content

Commit

Permalink
Revert Stdout back in case no logger is there
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Nov 26, 2021
1 parent 5343b42 commit 4c7230f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions logger/storer.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func Setup(p models.Payload, taskID string) (chan bool, func(), error) {
storer, err = NewHSDPStorer(p.Env)
}
if err != nil {
os.Stdout = old // Reset
return nil, func() {}, err
}
err = startStorerWorker(r, storer, logging.Resource{
Expand Down

0 comments on commit 4c7230f

Please sign in to comment.