We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c070e0 commit b0bffefCopy full SHA for b0bffef
cmd/syft/internal/ui/ui.go
@@ -78,6 +78,13 @@ func (m *UI) Handle(e partybus.Event) error {
78
}
79
80
func (m *UI) Teardown(force bool) error {
81
+ defer func() {
82
+ // allow for traditional logging to resume now that the UI is shutting down
83
+ if logWrapper, ok := log.Get().(logger.Controller); ok {
84
+ logWrapper.SetOutput(m.err)
85
+ }
86
+ }()
87
+
88
if !force {
89
m.handler.Wait()
90
m.program.Quit()
0 commit comments