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:
@@ -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() << "'.";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user