rsyslog is working

This commit is contained in:
Thomas Göttgens
2023-02-05 00:11:00 +01:00
parent d97a09ba1f
commit 829318046a
5 changed files with 27 additions and 10 deletions

View File

@@ -124,7 +124,12 @@ size_t RedirectablePrint::log(const char *logLevel, const char *format, ...)
default:
ll = 0;
}
syslog.vlogf(ll, format, arg);
auto thread = concurrency::OSThread::currentThread;
if (thread) {
syslog.vlogf(ll, thread->ThreadName.c_str(), format, arg);
} else {
syslog.vlogf(ll, format, arg);
}
}
#endif