From 948e080b31179328d398dc420cb30b021bf682a3 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Fri, 4 Nov 2022 13:49:46 +0800 Subject: [PATCH] [minor](error msg) Fix wrong error message (#13950) --- be/src/service/doris_main.cpp | 1 - be/src/util/libjvm_loader.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/be/src/service/doris_main.cpp b/be/src/service/doris_main.cpp index b6a7e3a118..3b53e6dc31 100644 --- a/be/src/service/doris_main.cpp +++ b/be/src/service/doris_main.cpp @@ -381,7 +381,6 @@ int main(int argc, char** argv) { status = doris::JniUtil::Init(); if (!status.ok()) { LOG(WARNING) << "Failed to initialize JNI: " << status.get_error_msg(); - doris::shutdown_logging(); exit(1); } #endif diff --git a/be/src/util/libjvm_loader.cpp b/be/src/util/libjvm_loader.cpp index abd0a4863b..127d28c2de 100644 --- a/be/src/util/libjvm_loader.cpp +++ b/be/src/util/libjvm_loader.cpp @@ -38,7 +38,7 @@ doris::Status resolve_symbol(T& pointer, void* handle, const char* symbol) { pointer = reinterpret_cast(dlsym(handle, symbol)); return (pointer != nullptr) ? doris::Status::OK() - : doris::Status::RuntimeError("Failed to resolve the symbol %s", symbol); + : doris::Status::RuntimeError("Failed to resolve the symbol {}", symbol); } } // namespace @@ -71,7 +71,7 @@ LibJVMLoader& LibJVMLoader::instance() { Status LibJVMLoader::load() { if (_library.empty()) { - return Status::RuntimeError("Failed to find the library %s.", LIBJVM_SO); + return Status::RuntimeError("Failed to find the library {}.", LIBJVM_SO); } static std::once_flag resolve_symbols;