plugin-macros: Add blog_debug()

obs-studio's LOG_DEBUG setting only works in very specific
circumstances, which is why we implement our own debug logging. This
will help a lot of code cleanup.
This commit is contained in:
tt2468 2021-11-20 01:31:03 -08:00
parent 99cbaaf34c
commit 60f12a16f3

View File

@ -22,6 +22,8 @@ with this program. If not, see <https://www.gnu.org/licenses/>
#include <util/base.h>
#define blog(level, msg, ...) blog(level, "[obs-websocket] " msg, ##__VA_ARGS__)
#define blog_debug(msg, ...) if (IsDebugEnabled()) blog(LOG_INFO, "[obs-websocket] [debug] " msg, ##__VA_ARGS__)
#define OBS_WEBSOCKET_VERSION "@OBS_WEBSOCKET_VERSION@"
#define OBS_WEBSOCKET_RPC_VERSION @OBS_WEBSOCKET_RPC_VERSION@