From badb7bf7a5119c6fc1c8d0e1b88c573df216545b Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 17 Jul 2019 12:51:03 -0700 Subject: [PATCH] Log dlopen errors only in debug mode (#9890) dlopen errors are expected behavior when locating libapp.so on some older Android devices (see https://github.com/flutter/engine/pull/9762) --- fml/platform/posix/native_library_posix.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fml/platform/posix/native_library_posix.cc b/fml/platform/posix/native_library_posix.cc index 558061e73..693cc1c5c 100644 --- a/fml/platform/posix/native_library_posix.cc +++ b/fml/platform/posix/native_library_posix.cc @@ -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() << "'."; } } -- GitLab