mirror of https://github.com/Icinga/icinga2.git
GelfWriter: Use raw CheckResult output for full_message attribute
fixes #10903 Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
parent
9f425cdcaf
commit
451cd73749
|
@ -116,7 +116,7 @@ void GelfWriter::CheckResultHandler(const Checkable::Ptr& checkable, const Check
|
|||
|
||||
if (cr) {
|
||||
fields->Set("short_message", CompatUtility::GetCheckResultOutput(cr));
|
||||
fields->Set("full_message", CompatUtility::GetCheckResultLongOutput(cr));
|
||||
fields->Set("full_message", cr->GetOutput());
|
||||
fields->Set("_check_source", cr->GetCheckSource());
|
||||
}
|
||||
|
||||
|
@ -243,7 +243,7 @@ void GelfWriter::StateChangeHandler(const Checkable::Ptr& checkable, const Check
|
|||
|
||||
if (cr) {
|
||||
fields->Set("short_message", CompatUtility::GetCheckResultOutput(cr));
|
||||
fields->Set("full_message", CompatUtility::GetCheckResultLongOutput(cr));
|
||||
fields->Set("full_message", cr->GetOutput());
|
||||
fields->Set("_check_source", cr->GetCheckSource());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue