mirror of https://github.com/Icinga/icinga2.git
parent
ace6882b59
commit
45919b4844
|
@ -602,10 +602,13 @@ void ApiListener::PersistMessage(const Dictionary::Ptr& message, const ConfigObj
|
||||||
pmessage->Set("timestamp", ts);
|
pmessage->Set("timestamp", ts);
|
||||||
|
|
||||||
pmessage->Set("message", JsonEncode(message));
|
pmessage->Set("message", JsonEncode(message));
|
||||||
Dictionary::Ptr secname = new Dictionary();
|
|
||||||
secname->Set("type", secobj->GetType()->GetName());
|
if (secobj) {
|
||||||
secname->Set("name", secobj->GetName());
|
Dictionary::Ptr secname = new Dictionary();
|
||||||
pmessage->Set("secobj", secname);
|
secname->Set("type", secobj->GetType()->GetName());
|
||||||
|
secname->Set("name", secobj->GetName());
|
||||||
|
pmessage->Set("secobj", secname);
|
||||||
|
}
|
||||||
|
|
||||||
boost::mutex::scoped_lock lock(m_LogLock);
|
boost::mutex::scoped_lock lock(m_LogLock);
|
||||||
if (m_LogFile) {
|
if (m_LogFile) {
|
||||||
|
|
Loading…
Reference in New Issue