From 221ed7d92b4951eab06283878f15a10420719e99 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 23 Dec 2013 01:06:53 -0700 Subject: [PATCH] make debug messages log to stdout on non-windows operating systems --- obs/obs-app.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/obs/obs-app.cpp b/obs/obs-app.cpp index f69b0b8ad..9922c5599 100644 --- a/obs/obs-app.cpp +++ b/obs/obs-app.cpp @@ -39,15 +39,17 @@ OBSAppBase::~OBSAppBase() static void do_log(enum log_type type, const char *msg, va_list args) { +#ifdef _WIN32 char bla[4096]; vsnprintf(bla, 4095, msg, args); -#ifdef _WIN32 OutputDebugStringA(bla); OutputDebugStringA("\n"); if (type >= LOG_WARNING) __debugbreak(); +#else + vprintf(msg, args); #endif }