X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsyslog.c;fp=src%2Fsyslog.c;h=fd313dd710b0aa04e58aee4cea041d216132460f;hb=5c1af1bad76fbd6f8996f09de16cd32f81224354;hp=d584eec905a03560228e05afac03e41769c42edd;hpb=c888188e5aabb3600d30ef48202b6f1c53349024;p=collectd.git diff --git a/src/syslog.c b/src/syslog.c index d584eec9..fd313dd7 100644 --- a/src/syslog.c +++ b/src/syslog.c @@ -85,13 +85,8 @@ static int sl_notification (const notification_t *n, int status; int severity; - /* do nothing if parsing of NotifSeverity failed */ - if (notif_severity == -1) - return 0; - /* do nothing if NotifSeverity is higer than notification - * note that OKAY notifs will always be displayed */ - if ((notif_severity == NOTIF_FAILURE) && (n -> severity == NOTIF_WARNING)) - return 0; + if (n->severity > notif_severity) + return (0); status = ssnprintf (buf_ptr, buf_len, "Notification: severity = %s", (n->severity == NOTIF_FAILURE) ? "FAILURE"