Fix android log level offset
Reviewed By: andreicoman11 Differential Revision: D2625742 fb-gh-sync-id: a373e85b7dd2e0fcb904b61a7728b16f4836c742
This commit is contained in:
parent
e98d3cdab8
commit
9d76acc3d6
|
@ -194,7 +194,7 @@ static JSValueRef nativeLoggingHook(
|
|||
// The lowest log level we get from JS is 0. We shift and cap it to be
|
||||
// in the range the Android logging method expects.
|
||||
logLevel = std::min(
|
||||
static_cast<android_LogPriority>(level + ANDROID_LOG_VERBOSE),
|
||||
static_cast<android_LogPriority>(level + ANDROID_LOG_DEBUG),
|
||||
ANDROID_LOG_FATAL);
|
||||
}
|
||||
if (argumentCount > 0) {
|
||||
|
|
Loading…
Reference in New Issue