mirror of
https://github.com/charmbracelet/glow
synced 2024-12-15 06:22:36 +00:00
Add logging for stash/news fetching
This commit is contained in:
parent
f680a9b96a
commit
f1ede23b3c
1 changed files with 6 additions and 0 deletions
6
ui/ui.go
6
ui/ui.go
|
@ -557,6 +557,9 @@ func loadStash(m stashModel) tea.Cmd {
|
||||||
}
|
}
|
||||||
return stashLoadErrMsg{err}
|
return stashLoadErrMsg{err}
|
||||||
}
|
}
|
||||||
|
if debug {
|
||||||
|
log.Println("loaded stash page", m.page)
|
||||||
|
}
|
||||||
return gotStashMsg(stash)
|
return gotStashMsg(stash)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -577,6 +580,9 @@ func loadNews(m stashModel) tea.Cmd {
|
||||||
}
|
}
|
||||||
return newsLoadErrMsg{err}
|
return newsLoadErrMsg{err}
|
||||||
}
|
}
|
||||||
|
if debug {
|
||||||
|
log.Println("fetched news")
|
||||||
|
}
|
||||||
return gotNewsMsg(news)
|
return gotNewsMsg(news)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue