Update runtime/ui/app.go

Co-authored-by: Changsu <imcxsu@gmail.com>
This commit is contained in:
Daniel Thornton 2021-01-01 22:18:59 -05:00 committed by GitHub
commit 00a1b771a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,6 +133,7 @@ func newApp(app *tview.Application, analysis *image.AnalysisResult, cache filetr
// Run is the UI entrypoint.
func Run(analysis *image.AnalysisResult, treeStack filetree.Comparer, isCNB bool) error {
cfg := zap.NewDevelopmentConfig()
os.MkdirAll("/tmp/dive", os.ModePerm)
cfg.OutputPaths = []string{"/tmp/dive/debug.out"}
logger, err := cfg.Build()
if err != nil {