mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
099cc5d8df
commit
63a8c1b7ef
@ -10,6 +10,7 @@
|
||||
#include "base/context.hpp"
|
||||
#include "base/scriptglobal.hpp"
|
||||
#include <iostream>
|
||||
#include <utility>
|
||||
|
||||
using namespace icinga;
|
||||
|
||||
@ -201,7 +202,13 @@ Log::~Log()
|
||||
entry.Timestamp = Utility::GetTime();
|
||||
entry.Severity = m_Severity;
|
||||
entry.Facility = m_Facility;
|
||||
entry.Message = m_Buffer.str();
|
||||
|
||||
{
|
||||
auto msg (m_Buffer.str());
|
||||
msg.erase(msg.find_last_not_of("\n") + 1u);
|
||||
|
||||
entry.Message = std::move(msg);
|
||||
}
|
||||
|
||||
if (m_Severity >= LogWarning) {
|
||||
ContextTrace context;
|
||||
|
Loading…
x
Reference in New Issue
Block a user