Issue #682: convert logs package to RFC5424 logging levels.
This commit is contained in:
@@ -48,7 +48,7 @@ func (c *ConnWriter) Init(jsonconfig string) error {
|
||||
// write message in connection.
|
||||
// if connection is down, try to re-connect.
|
||||
func (c *ConnWriter) WriteMsg(msg string, level int) error {
|
||||
if level < c.Level {
|
||||
if level > c.Level {
|
||||
return nil
|
||||
}
|
||||
if c.neddedConnectOnMsg() {
|
||||
|
||||
Reference in New Issue
Block a user