mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 12:15:37 +08:00
Update ReactAndroid/main/jni/react to use glog for logging
Summary: Updates uses of FBLOG* and FBASSERT* to their glog equivalents. public Reviewed By: astreet Differential Revision: D2905159 fb-gh-sync-id: 1f916283aa3de68d8469c8d4ca7fa0874cec28ef
This commit is contained in:
committed by
facebook-github-bot-2
parent
294185ac32
commit
fc94f1e6d0
@@ -3,7 +3,7 @@
|
||||
#include "JSCHelpers.h"
|
||||
|
||||
#include <JavaScriptCore/JSStringRef.h>
|
||||
#include <fb/log.h>
|
||||
#include <glog/logging.h>
|
||||
#include <jni/fbjni/Exceptions.h>
|
||||
|
||||
#include "Value.h"
|
||||
@@ -52,7 +52,7 @@ JSValueRef evaluateScript(JSContextRef context, JSStringRef script, JSStringRef
|
||||
if (result == nullptr) {
|
||||
Value exception = Value(context, exn);
|
||||
std::string exceptionText = exception.toString().str();
|
||||
FBLOGE("Got JS Exception: %s", exceptionText.c_str());
|
||||
LOG(ERROR) << "Got JS Exception: " << exceptionText;
|
||||
auto line = exception.asObject().getProperty("line");
|
||||
|
||||
std::ostringstream locationInfo;
|
||||
|
||||
Reference in New Issue
Block a user