Reversing a debugging edit

This commit is contained in:
Adam Cooper 2023-11-25 10:48:07 -05:00
parent 6c5cc39107
commit 33ce567115

View file

@ -178,9 +178,11 @@ func main() {
if logfilePath == "" {
logfilePath = fmt.Sprintf("/tmp/%s_breakfast.log", time.Now().Local().Format("20060102150405-0700"))
}
if _, err := tea.LogToFile(logfilePath, "DEBUG"); err != nil {
f, err := tea.LogToFile(logfilePath, "DEBUG")
if err != nil {
log.Fatal(err)
}
defer f.Close()
p := tea.NewProgram(initialModel())
if err := p.Start(); err != nil {