Skip to content

Commit

Permalink
fix(syslog): conn is nil (#32)
Browse files Browse the repository at this point in the history
* fix(syslog): the syslog service cannot be started properly because it is unstable

* fix(syslog): conn is nil
  • Loading branch information
flc1125 authored Nov 16, 2023
1 parent 225e60d commit 7f2130f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions log/syslog/syslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,9 @@ func (l *Logger) connect() error {
}

func (l *Logger) Close() error {
if l.conn == nil {
return nil
}

return l.conn.Close()
}

0 comments on commit 7f2130f

Please sign in to comment.