else all the messages get their priorities distorted
Signed-off-by: Angus Salkeld <asalkeld(a)redhat.com>
---
lib/log_syslog.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/lib/log_syslog.c b/lib/log_syslog.c
index 6bb6182..16a3da0 100644
--- a/lib/log_syslog.c
+++ b/lib/log_syslog.c
@@ -31,8 +31,14 @@ _syslog_logger(int32_t target,
{
char output_buffer[QB_LOG_MAX_LEN];
struct qb_log_target *t = qb_log_target_get(target);
- int32_t final_priority = cs->priority + t->priority_bump;
+ int32_t final_priority = cs->priority;
+ if (final_priority > LOG_INFO) {
+ /*
+ * only bump the priority if it is greater than info.
+ */
+ final_priority += t->priority_bump;
+ }
if (final_priority > LOG_DEBUG) {
return;
}
--
1.7.7.5
Show replies by date