add in-built logging support for a better dev experience

This commit is contained in:
Jesse Duffield
2020-09-26 10:23:10 +10:00
parent 0c6cbe7746
commit 077f113618
136 changed files with 6685 additions and 7711 deletions

View File

@@ -327,7 +327,7 @@ func (gui *Gui) layout(g *gocui.Gui) error {
}
// here is a good place log some stuff
// if you download humanlog and do tail -f development.log | humanlog
// if you run `lazygit --logs`
// this will let you see these branches as prettified json
// gui.Log.Info(utils.AsJson(gui.State.Branches[0:4]))
return gui.resizeCurrentPopupPanel()