Skip to content

Commit 98864aa

Browse files
committed
[OCC Plugin] Improve debug output
1 parent 48bd01b commit 98864aa

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

occ/plugin/OccPluginServer.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include <boost/uuid/uuid_io.hpp>
3636

3737
#include <condition_variable>
38+
#include <iomanip>
3839

3940
OccPluginServer::OccPluginServer(fair::mq::PluginServices* pluginServices)
4041
: Service(), m_pluginServices(pluginServices)
@@ -273,6 +274,14 @@ OccPluginServer::Transition(grpc::ServerContext* context,
273274
"no transitions made, current state stays " + srcState);
274275
}
275276

277+
if (newStates.back() == "READY") {
278+
// Debug: list of FairMQ property keys
279+
auto pk = m_pluginServices->GetPropertyKeys();
280+
for (const auto &k : pk) {
281+
OLOG(DEBUG) << std::setw(30) << k << " = " + m_pluginServices->GetPropertyAsString(k);
282+
}
283+
}
284+
276285
response->set_state(newStates.back());
277286
response->set_event(request->event());
278287
response->set_ok(newStates.back() == finalState);

0 commit comments

Comments
 (0)