Reversing a debugging edit
This commit is contained in:
parent
6c5cc39107
commit
33ce567115
1 changed files with 3 additions and 1 deletions
4
main.go
4
main.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue