Skip to content

Commit

Permalink
Log pager start / done
Browse files Browse the repository at this point in the history
  • Loading branch information
walles committed Jan 1, 2025
1 parent a86f361 commit 60f1900
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions m/pager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 60f1900

Please sign in to comment.