Skip to content

Commit

Permalink
Fix trace again
Browse files Browse the repository at this point in the history
  • Loading branch information
rs committed Nov 19, 2019
1 parent 686705b commit f1dd50b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion syslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func (sw syslogWriter) Write(p []byte) (n int, err error) {
func (sw syslogWriter) WriteLevel(level Level, p []byte) (n int, err error) {
switch level {
case TraceLevel:
err = sw.w.Trace(string(p))
case DebugLevel:
err = sw.w.Debug(string(p))
case InfoLevel:
Expand Down
7 changes: 4 additions & 3 deletions syslog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

package zerolog

import "testing"
import "reflect"
import (
"reflect"
"testing"
)

type syslogEvent struct {
level string
Expand Down Expand Up @@ -56,7 +58,6 @@ func TestSyslogWriter(t *testing.T) {
log.Error().Msg("error")
log.Log().Msg("nolevel")
want := []syslogEvent{
{"Trace", `{"level":"trace","message":"trace"}` + "\n"},
{"Debug", `{"level":"debug","message":"debug"}` + "\n"},
{"Info", `{"level":"info","message":"info"}` + "\n"},
{"Warning", `{"level":"warn","message":"warn"}` + "\n"},
Expand Down

0 comments on commit f1dd50b

Please sign in to comment.