restore log source after etui exit

This commit is contained in:
Alex Goodman 2020-08-02 18:31:00 -04:00
parent 11731fac40
commit fb8f3d87ed
No known key found for this signature in database
GPG key ID: 86E2870463D5E890

View file

@ -61,6 +61,10 @@ func OutputToEphemeralTUI(workerErrs <-chan error, subscription *partybus.Subscr
// flush any errors to the screen before the report
fmt.Fprint(output, logBuffer.String())
}
logWrapper, ok := log.Log.(*logger.LogrusLogger)
if ok {
logWrapper.Logger.SetOutput(output)
}
}()
var err error