Fix android log level offset

Reviewed By: andreicoman11

Differential Revision: D2625742

fb-gh-sync-id: a373e85b7dd2e0fcb904b61a7728b16f4836c742
This commit is contained in:
Pieter De Baets 2015-11-06 05:00:26 -08:00 committed by facebook-github-bot-9
parent e98d3cdab8
commit 9d76acc3d6
1 changed files with 1 additions and 1 deletions

View File

@ -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) {