Oculus mobile: Promote Lua print() statements to INFO
This means Lua print() statements can be uniquely filtered out vs anything else (because internal Lovr logging uses loglevel DEBUG and lovr errors use loglevel WARN).
#include "platform.h"
#define LOG(...) __android_log_print(ANDROID_LOG_DEBUG, "LOVR", __VA_ARGS__)
+#define INFO(...) __android_log_print(ANDROID_LOG_INFO, "LOVR", __VA_ARGS__)
#define WARN(...) __android_log_print(ANDROID_LOG_WARN, "LOVR", __VA_ARGS__)
// Data passed from bridge code to headset code
@@ -349,7 +350,7 @@ int luax_print(lua_State* L) {
luaL_addvalue(&buffer);
}
luaL_pushresult(&buffer);
- LOG("%s", lua_tostring(L, -1));
+ INFO("%s", lua_tostring(L, -1));
return 0;
}
