Skip to content

Commit 269c90b

Browse files
committed
use stderr if syslog is not available to address #17
1 parent fa31c83 commit 269c90b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/crucible/crucible.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ func main() {
333333
if conf.syslog {
334334
if logwriter, _ := syslog.New(syslog.LOG_INFO, "crucible"); logwriter != nil {
335335
log.SetOutput(logwriter)
336+
} else {
337+
log.SetOutput(os.Stderr)
336338
}
337339
} else {
338340
log.SetOutput(os.Stdout)

0 commit comments

Comments
 (0)