Skip to content

Commit c89fce1

Browse files
committed
Ignore debug.log
1 parent a6fc8bf commit c89fce1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313

1414
# Dependency directories (remove the comment below to include it)
1515
# vendor/
16+
17+
# Misc
18+
pathos.sh
19+
debug.log

pathos.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,13 @@ func initialModel() model {
295295
}
296296

297297
func main() {
298-
f, err := os.OpenFile("testlogfile", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
298+
f, err := os.OpenFile("debug.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
299299
if err != nil {
300300
log.Fatalf("error opening file: %v", err)
301301
}
302302
defer f.Close()
303303

304304
log.SetOutput(f)
305-
log.Println("after createLog")
306305

307306
if err := tea.NewProgram(initialModel()).Start(); err != nil {
308307
fmt.Println("Error running program:", err)

0 commit comments

Comments
 (0)