Log dlopen errors only in debug mode (flutter/engine#9890)

dlopen errors are expected behavior when locating libapp.so on some older
Android devices (see https://github.com/flutter/engine/pull/9762)
This commit is contained in:
Jason Simmons
2019-07-17 12:51:03 -07:00
committed by GitHub
parent f743db9bf5
commit 62415d538c

View File

@@ -13,8 +13,8 @@ NativeLibrary::NativeLibrary(const char* path) {
::dlerror();
handle_ = ::dlopen(path, RTLD_NOW);
if (handle_ == nullptr) {
FML_LOG(ERROR) << "Could not open library '" << path << "' due to error '"
<< ::dlerror() << "'.";
FML_DLOG(ERROR) << "Could not open library '" << path << "' due to error '"
<< ::dlerror() << "'.";
}
}