From d630e978bae777c14d4679a70f0319877db61acd Mon Sep 17 00:00:00 2001 From: Jean Christophe Roques Date: Thu, 8 Dec 2022 16:01:45 +0100 Subject: [PATCH] MON-16170 all event string is sent to log if we can't parse output --- broker/neb/src/callbacks.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/broker/neb/src/callbacks.cc b/broker/neb/src/callbacks.cc index 90e4e3c4e70..6870be5c441 100644 --- a/broker/neb/src/callbacks.cc +++ b/broker/neb/src/callbacks.cc @@ -2209,11 +2209,11 @@ int neb::callback_pb_log(int callback_type [[maybe_unused]], void* data) { log_data = static_cast(data); le_obj.set_ctime(log_data->entry_time); le_obj.set_instance_name(config::applier::state::instance().poller_name()); - if (log_data->data) - if (!set_pb_log_data(*le, - misc::string::check_string_utf8(log_data->data))) - return 0; - + if (log_data->data) { + std::string output = misc::string::check_string_utf8(log_data->data); + le_obj.set_output(output); + set_pb_log_data(*le, output); + } // Send event. gl_publisher.write(le); }