Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Dec 20, 2023
1 parent 0eb8bc1 commit fd5ac00
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/SRC/ARUtil/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,16 @@ void arLogv(const char *tag, const int logLevel, const char *format, va_list ap)
os_log_with_type(OS_LOG_DEFAULT, type, "%{public}s", buf);
}
#else

#ifdef __EMSCRIPTEN__
if(logLevel == AR_LOG_LEVEL_ERROR)
fprintf(stderr, "%s", buf);
else
fprintf(stdout, "%s", buf);
#else
fprintf(stderr, "%s", buf);
#endif

#endif
}
free(buf);
Expand Down

0 comments on commit fd5ac00

Please sign in to comment.