void Action::ExecuteCommand(const Command& command) const { Timer t; int result = command.InvokeFunc(); if (klog_get_level() >= KLOG_INFO_LEVEL) { std::string trigger_name = BuildTriggersString(); std::string cmd_str = command.BuildCommandString(); std::string source = command.BuildSourceString(); INFO("Command '%s' action=%s%s returned %d took %.2fs\n", cmd_str.c_str(), trigger_name.c_str(), source.c_str(), result, t.duration()); } }