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

@@ -56,7 +56,7 @@ bool MacroActionWebsocket::PerformAction()
void MacroActionWebsocket::LogAction() const
{
if (_api == API::GENERIC_WEBSOCKET) {
vblog(LOG_INFO,
ablog(LOG_INFO,
"sent generic websocket message \"%s\" via \"%s\"",
_message.c_str(),
GetWeakConnectionName(_connection).c_str());
@@ -64,7 +64,7 @@ void MacroActionWebsocket::LogAction() const
}
if (_api == API::OBS_WEBSOCKET) {
vblog(LOG_INFO, "sent obs websocket message \"%s\" via \"%s\"",
ablog(LOG_INFO, "sent obs websocket message \"%s\" via \"%s\"",
_message.c_str(),
GetWeakConnectionName(_connection).c_str());
return;
@@ -72,12 +72,12 @@ void MacroActionWebsocket::LogAction() const
switch (_type) {
case MacroActionWebsocket::MessageType::REQUEST:
vblog(LOG_INFO, "sent scene switcher message \"%s\" via \"%s\"",
ablog(LOG_INFO, "sent scene switcher message \"%s\" via \"%s\"",
_message.c_str(),
GetWeakConnectionName(_connection).c_str());
break;
case MacroActionWebsocket::MessageType::EVENT:
vblog(LOG_INFO,
ablog(LOG_INFO,
"sent scene switcher event \"%s\" to connected clients",
_message.c_str());
break;