log whether get_next_executable did anything

This commit is contained in:
Kurt Wilson 2023-07-15 19:19:14 -04:00
parent ab0915c49f
commit 675c2affc4

View file

@ -627,9 +627,15 @@ void PriorityMemoryStrategy<>::get_next_executable(
// returning with an executable // returning with an executable
// remove from all_executables_ map // remove from all_executables_ map
all_executables_.erase(next_exec); all_executables_.erase(next_exec);
std::stringstream oss;
oss << "{\"operation\":\"get_next_executable\", \"result\":\"success\", \"type\":\"" << type << "\"}";
log_entry(logger_, oss.str());
return; return;
} }
// nothing found
std::stringstream oss;
oss << "{\"operation\":\"get_next_executable\", \"result\":\"nothing_found\"}";
log_entry(logger_, oss.str());
} }
template <> template <>