mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-04 20:25:29 +00:00
Merge "core/logging: Fix broken syslog levels on older glibc." into 13
This commit is contained in:
@@ -1322,7 +1322,8 @@ static void ast_log_vsyslog(struct logmsg *msg, int facility)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
syslog_level = LOG_MAKEPRI(facility, syslog_level);
|
/* Don't use LOG_MAKEPRI because it's broken in glibc<2.17 */
|
||||||
|
syslog_level = facility | syslog_level; /* LOG_MAKEPRI(facility, syslog_level); */
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "%s[%d]%s: %s:%d in %s: %s",
|
snprintf(buf, sizeof(buf), "%s[%d]%s: %s:%d in %s: %s",
|
||||||
levels[msg->level], msg->lwp, call_identifier_str, msg->file, msg->line, msg->function, msg->message);
|
levels[msg->level], msg->lwp, call_identifier_str, msg->file, msg->line, msg->function, msg->message);
|
||||||
|
Reference in New Issue
Block a user