control - Remove `nameOwnerChanged` signal flight recorder
Remove due to the possibility of being called more than once if more
than one event uses the same group trigger as it could be confusing that
more than one signal was received when it was not. This is due to the
`sd_bus_message_rewind` in Manager::handleSignal().
Change-Id: I6e6739658c67fe745e525b3da9bffd0213119c8c
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/triggers/handlers.hpp b/control/json/triggers/handlers.hpp
index 15bced0..34271c2 100644
--- a/control/json/triggers/handlers.hpp
+++ b/control/json/triggers/handlers.hpp
@@ -1,9 +1,6 @@
#pragma once
#include "../manager.hpp"
-#include "../utils/flight_recorder.hpp"
-
-#include <fmt/format.h>
#include <sdbusplus/message.hpp>
@@ -152,9 +149,7 @@
{
hasOwner = true;
}
- FlightRecorder::instance().log(
- "nameOwnerChanged", fmt::format("Service: {}, Owned: {}", serv,
- hasOwner ? "true" : "false"));
+
mgr.setOwner(serv, hasOwner);
return true;
}