mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
restore log source after etui exit
This commit is contained in:
parent
11731fac40
commit
fb8f3d87ed
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue