mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
BUCK: define GLOG_NO_ABBREVIATED_SEVERITIES everywhere
Summary: This is only defined on Windows, and thus code that compiles on all platforms may successfully build on Linux/macOS, but not on Windows, making it potentially harder to detect and debug. Let's unify all platforms to solve this. Changelog: [Internal] Reviewed By: chadaustin Differential Revision: D34648154 fbshipit-source-id: b2549bb3eb120e6207cab8baaafced8b1b18e6a7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c8067f1ffd
commit
ece1dd4ed9
@@ -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); \
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user