Skip to content

Commit 78eb4ec

Browse files
author
Matthew Fisher
committed
fix(logger): log the error, but don't panic
We should not panic if we cannot find the app name in the message.
1 parent 89c1f41 commit 78eb4ec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

logger/syslogd/syslogd.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"fmt"
55
"io"
6+
"log"
67
"os"
78
"os/signal"
89
"path"
@@ -86,7 +87,7 @@ func (h *handler) mainLoop() {
8687
}
8788
err := writeToDisk(m)
8889
if err != nil {
89-
panic(err)
90+
log.Println(err)
9091
}
9192
}
9293
h.End()

0 commit comments

Comments
 (0)