Skip to content
Snippets Groups Projects
Commit 6cde3117 authored by Steven Murray's avatar Steven Murray
Browse files

Simplified SyslogLogger::writeMsgToUnderlyingLoggingSystem()

parent d78f1a57
No related branches found
No related tags found
No related merge requests found
......@@ -67,9 +67,7 @@ void SyslogLogger::prepareForFork() {
//-----------------------------------------------------------------------------
void SyslogLogger::writeMsgToUnderlyingLoggingSystem(const std::string &header, const std::string &body) {
// Explicitly ignore the message header as this will be provided by rsyslog
std::string truncatedMsg = body;
syslog(LOG_LOCAL3|INFO, truncatedMsg.c_str());
syslog(LOG_LOCAL3|INFO, body.c_str());
}
} // namespace log
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment