Skip to content

Commit

Permalink
Merge pull request #2 from DCSO/automatic
Browse files Browse the repository at this point in the history
use automatic format detection
  • Loading branch information
ctc-phil authored Apr 22, 2024
2 parents d713ae5 + 6c68e08 commit 9f9b8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mini-syslog-receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func main() {

var err error
server := syslog.NewServer()
server.SetFormat(syslog.RFC5424)
server.SetFormat(syslog.Automatic)
server.SetHandler(handler)

addr := fmt.Sprintf("%s:%d", ctx.String("listen"), ctx.Uint64("port"))
Expand Down

0 comments on commit 9f9b8c8

Please sign in to comment.