lab icon indicating copy to clipboard operation
lab copied to clipboard

app.Stop() is hiding output from log.Fatal

Open brodock opened this issue 4 years ago • 0 comments

I was trying to investigate why lab ci view wasn't working, and I couldn't get existing log.Fatal to print any error for me... I also trying redirecting stderr to a file, which is also not working. tview may be doing something I couldn't figure out yet.

My initial guess was that either app.Stop() was replacing the content at the same time log.Fatal was printing, or it was stopping the application before.

So I changed the order, to have log.Fatal print before app.Stop() and I finally got an output:

2020/01/27 17:49:38 ci_view.go:493: <nil>

(I've switched the order in every location where there was app.Stop() followed by log.Fatal

brodock avatar Jan 27 '20 16:01 brodock