Skip to content

Commit

Permalink
Merge pull request #11 from yansuan/master
Browse files Browse the repository at this point in the history
fix syslogBackend does not implement Backend (missing Close method)
  • Loading branch information
UlricQin authored Dec 30, 2022
2 parents 2a2a483 + 03fbb32 commit 2c60126
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logger/syslog_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build windows || plan9 || netbsd
// +build windows plan9 netbsd

package logger
Expand All @@ -16,7 +17,7 @@ func NewSyslogBackend(priorityStr string, tag string) (*syslogBackend, error) {
func (self *syslogBackend) Log(s Severity, msg []byte) {
}

func (self *syslogBackend) close() {
func (self *syslogBackend) Close() {
}

func (self *syslogBackend) tryPutInBuf(s Severity, msg []byte) {
Expand Down

0 comments on commit 2c60126

Please # to comment.