From 60f190007f599636cb07ac6dea30aa5ed6799b9c Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Wed, 1 Jan 2025 14:44:48 +0100 Subject: [PATCH] Log pager start / done --- m/pager.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/m/pager.go b/m/pager.go index 9aea0eb..9be0faf 100644 --- a/m/pager.go +++ b/m/pager.go @@ -270,8 +270,8 @@ func (p *Pager) handleScrolledDown() { // StartPaging brings up the pager on screen func (p *Pager) StartPaging(screen twin.Screen, chromaStyle *chroma.Style, chromaFormatter *chroma.Formatter) { - log.Trace("Pager starting") - defer log.Trace("Pager done") + log.Info("Pager starting") + defer log.Info("Pager done") defer func() { if p.reader.err != nil { @@ -342,6 +342,8 @@ func (p *Pager) StartPaging(screen twin.Screen, chromaStyle *chroma.Style, chrom } }() + log.Info("Entering pager main loop...") + // Main loop spinner := "" for !p.quit {