Make fix random crash I was seeing?
alex wennerberg alex@alexwennerberg.com
Thu, 14 Jan 2021 20:49:20 -0800
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
log.go
→
log.go
@@ -243,11 +243,13 @@ row := db.QueryRow(`SELECT timestamp from log order by timestamp desc limit 1`)
err := row.Scan(&maxTime) if err != nil { // not perfect -- squashes errors + return } file, err := os.Open(c.LogFile) if err != nil { - log.Fatal(err) + // not perfect -- squashes errors + return } defer file.Close()