From 409cd83cb4895298a7d58d6c1481143d6d1dd013 Mon Sep 17 00:00:00 2001 From: Jia Hao Date: Tue, 18 Jul 2023 12:52:48 +0800 Subject: [PATCH] Revert "Log dlopen errors in opt builds (#41477)" (flutter/engine#43677) This reverts commit 2b0b0a0e7882a7af5efa843b598a4d42b49b47b4. This didn't seem to help with debugging b/276657840. Fixes https://github.com/flutter/flutter/issues/125523. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- .../src/flutter/fml/platform/posix/native_library_posix.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 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 5e595c5487..43406bc21b 100644 --- a/engine/src/flutter/fml/platform/posix/native_library_posix.cc +++ b/engine/src/flutter/fml/platform/posix/native_library_posix.cc @@ -13,10 +13,8 @@ NativeLibrary::NativeLibrary(const char* path) { ::dlerror(); handle_ = ::dlopen(path, RTLD_NOW); if (handle_ == nullptr) { - // TODO(jiahaog): Use FML_DLOG: - // https://github.com/flutter/flutter/issues/125523 - FML_LOG(ERROR) << "Could not open library '" << path << "' due to error '" - << ::dlerror() << "'."; + FML_DLOG(ERROR) << "Could not open library '" << path << "' due to error '" + << ::dlerror() << "'."; } }