mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Events: refactor logging code
This commit is contained in:
parent
35cb506d6e
commit
54a16f4d2f
11
WSEvents.cpp
11
WSEvents.cpp
@ -215,14 +215,11 @@ void WSEvents::broadcastUpdate(const char* updateType, obs_data_t* additionalFie
|
||||
obs_data_apply(update, additionalFields);
|
||||
|
||||
const char *json = obs_data_get_json(update);
|
||||
obs_data_release(update);
|
||||
|
||||
if (Config::Current()->DebugEnabled)
|
||||
{
|
||||
blog(LOG_DEBUG, "Update << '%s'", json);
|
||||
}
|
||||
|
||||
_srv->broadcast(json);
|
||||
if (Config::Current()->DebugEnabled)
|
||||
blog(LOG_DEBUG, "Update << '%s'", json);
|
||||
|
||||
obs_data_release(update);
|
||||
}
|
||||
|
||||
void WSEvents::connectTransitionSignals(obs_source_t* transition)
|
||||
|
Loading…
x
Reference in New Issue
Block a user