From e05cd3144f12c51c3cf42e284c0540328cc33c86 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 27 Nov 2014 09:40:27 +0100 Subject: [PATCH] Fix incorrect operators in GelfWriter::NotificationToUserHandler fixes #7866 --- lib/perfdata/gelfwriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/perfdata/gelfwriter.cpp b/lib/perfdata/gelfwriter.cpp index 32a1e2fed..94abac435 100644 --- a/lib/perfdata/gelfwriter.cpp +++ b/lib/perfdata/gelfwriter.cpp @@ -148,7 +148,7 @@ void GelfWriter::NotificationToUserHandler(const Notification::Ptr& notification fields->Set("short_message", output); } else { fields->Set("_type", "HOST NOTIFICATION"); - fields->Set("short_message", "(" << (host->IsReachable() ? Host::StateToString(host->GetState()) : "UNREACHABLE") << ")"); + fields->Set("short_message", "(" + (host->IsReachable() ? Host::StateToString(host->GetState()) : String("UNREACHABLE")) + ")"); } fields->Set("_state", service ? Service::StateToString(service->GetState()) : Host::StateToString(host->GetState())); -- 2.40.0