added facility to SyslogChannel (#3453)

This commit is contained in:
BeBinder 2022-06-02 07:04:27 +02:00 committed by GitHub
parent ff879f5905
commit ec41521ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,8 @@ void SyslogChannel::close()
void SyslogChannel::log(const Message& msg)
{
if (!_open) open();
syslog(getPrio(msg), "%s", msg.getText().c_str());
const int pri = getPrio(msg) + _facility;
syslog(pri, "%s", msg.getText().c_str());
}