diff --git a/be/src/runtime/user_function_cache.cpp b/be/src/runtime/user_function_cache.cpp index f173feb349..aa1086e8f7 100644 --- a/be/src/runtime/user_function_cache.cpp +++ b/be/src/runtime/user_function_cache.cpp @@ -305,7 +305,7 @@ Status UserFunctionCache::_download_lib(const std::string& url, UserFunctionCach auto fp_closer = [](FILE* fp) { fclose(fp); }; std::unique_ptr fp(fopen(tmp_file.c_str(), "w"), fp_closer); if (fp == nullptr) { - LOG(WARNING) << "fail to open file, file=" << tmp_file << ", error=" << ferror(fp.get()); + LOG(WARNING) << "fail to open file, file=" << tmp_file; return Status::InternalError("fail to open file"); }