Issue #682: convert logs package to RFC5424 logging levels.

This commit is contained in:
Frederic G. MARAND
2014-07-11 11:15:34 +02:00
parent dbe75f90d5
commit 7d09ac252a
8 changed files with 138 additions and 73 deletions

View File

@@ -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() {