From 62415d538ce3ab0471ad65608cb1ef53f8d74782 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 (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) --- engine/src/flutter/fml/platform/posix/native_library_posix.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/fml/platform/posix/native_library_posix.cc b/engine/src/flutter/fml/platform/posix/native_library_posix.cc index 558061e739..693cc1c5cb 100644 --- a/engine/src/flutter/fml/platform/posix/native_library_posix.cc +++ b/engine/src/flutter/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() << "'."; } }