From 4c7230f62d76bf1a9324be60eb79756f621e15c8 Mon Sep 17 00:00:00 2001 From: Andy Lo-A-Foe Date: Fri, 26 Nov 2021 22:23:57 +0100 Subject: [PATCH] Revert Stdout back in case no logger is there --- logger/storer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/logger/storer.go b/logger/storer.go index a846649..0ec20e7 100644 --- a/logger/storer.go +++ b/logger/storer.go @@ -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{