Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(logger): log the error, but don't panic
Browse files Browse the repository at this point in the history
We should not panic if we cannot find the app name in the message.
  • Loading branch information
Matthew Fisher committed Oct 2, 2014
1 parent 89c1f41 commit 78eb4ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logger/syslogd/syslogd.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"fmt"
"io"
"log"
"os"
"os/signal"
"path"
Expand Down Expand Up @@ -86,7 +87,7 @@ func (h *handler) mainLoop() {
}
err := writeToDisk(m)
if err != nil {
panic(err)
log.Println(err)
}
}
h.End()
Expand Down

0 comments on commit 78eb4ec

Please sign in to comment.