Add log level which prints performed actions

This commit is contained in:
WarmUpTill
2024-03-02 00:48:06 +01:00
committed by WarmUpTill
parent 9acbead87b
commit ab0cce9eaa
56 changed files with 144 additions and 94 deletions

View File

@@ -134,8 +134,11 @@ void ActionQueue::RunActions()
continue;
}
vblog(LOG_INFO, "Performing action '%s' in queue '%s'",
action->GetId().c_str(), _name.c_str());
if (ActionLoggingEnabled()) {
blog(LOG_INFO, "Performing action '%s' in queue '%s'",
action->GetId().c_str(), _name.c_str());
action->LogAction();
}
action->PerformAction();
}
}