diff --git a/ReactCommon/react/debug/react_native_assert.h b/ReactCommon/react/debug/react_native_assert.h index 014329c5a93..b152858b809 100644 --- a/ReactCommon/react/debug/react_native_assert.h +++ b/ReactCommon/react/debug/react_native_assert.h @@ -55,7 +55,7 @@ void react_native_assert_fail( #define react_native_assert(cond) \ if (!(cond)) { \ LOG(ERROR) << "react_native_assert failure: " << #cond; \ - google::FlushLogFiles(google::INFO); \ + google::FlushLogFiles(google::GLOG_INFO); \ assert(cond); \ } diff --git a/ReactCommon/react/renderer/mounting/StubViewTree.cpp b/ReactCommon/react/renderer/mounting/StubViewTree.cpp index e47e1bf9298..62d77a08a8c 100644 --- a/ReactCommon/react/renderer/mounting/StubViewTree.cpp +++ b/ReactCommon/react/renderer/mounting/StubViewTree.cpp @@ -250,7 +250,7 @@ void StubViewTree::mutate(ShadowViewMutationList const &mutations) { // For iOS especially: flush logs because some might be lost on iOS if an // assert is hit right after this. - google::FlushLogFiles(google::INFO); + google::FlushLogFiles(google::GLOG_INFO); } bool operator==(StubViewTree const &lhs, StubViewTree const &rhs) {