Make verbose_log() print on stdout when _DEBUG is enabled

This commit is contained in:
David Capello 2015-10-20 10:46:15 -03:00
parent 76e7d15484
commit 05b70d2538

View File

@ -63,8 +63,16 @@ void verbose_log(const char* format, ...)
if (app::log_fileptr) {
va_list ap;
va_start(ap, format);
vfprintf(app::log_fileptr, format, ap);
fflush(app::log_fileptr);
#ifdef _DEBUG
vfprintf(stdout, format, ap);
fflush(stdout);
#endif
va_end(ap);
}
}