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:
Родитель
c8067f1ffd
Коммит
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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче