From 675c2affc4f86bfab359b7cabb553b0f7901e86b Mon Sep 17 00:00:00 2001 From: Kurt Wilson Date: Sat, 15 Jul 2023 19:19:14 -0400 Subject: [PATCH] log whether get_next_executable did anything --- src/priority_executor/src/priority_memory_strategy.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/priority_executor/src/priority_memory_strategy.cpp b/src/priority_executor/src/priority_memory_strategy.cpp index 8264840..bd3e4ea 100644 --- a/src/priority_executor/src/priority_memory_strategy.cpp +++ b/src/priority_executor/src/priority_memory_strategy.cpp @@ -627,9 +627,15 @@ void PriorityMemoryStrategy<>::get_next_executable( // returning with an executable // remove from all_executables_ map all_executables_.erase(next_exec); - + std::stringstream oss; + oss << "{\"operation\":\"get_next_executable\", \"result\":\"success\", \"type\":\"" << type << "\"}"; + log_entry(logger_, oss.str()); return; } + // nothing found + std::stringstream oss; + oss << "{\"operation\":\"get_next_executable\", \"result\":\"nothing_found\"}"; + log_entry(logger_, oss.str()); } template <>