From 1ff0748d6cce5e4161281cbcb5f06ff8edc64e88 Mon Sep 17 00:00:00 2001 From: wangpggg Date: Mon, 22 Apr 2024 15:07:53 +0800 Subject: [PATCH] delete useless logs Signed-off-by: wangpeng --- utils/src/b_error/b_error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/src/b_error/b_error.cpp b/utils/src/b_error/b_error.cpp index 0a5867296..cb76bda14 100644 --- a/utils/src/b_error/b_error.cpp +++ b/utils/src/b_error/b_error.cpp @@ -46,7 +46,7 @@ string BError::WrapMessageWithExtraInfos(const char *fileName, } string res = ss.str(); - (void)HILOG_IMPL(LOG_CORE, LOG_ERROR, LOG_DOMAIN, LOG_TAG, "%{public}s", res.c_str()); + HILOG_IMPL(LOG_CORE, (code == Codes::OK) ? LOG_DEBUG : LOG_ERROR, LOG_DOMAIN, LOG_TAG, "%{public}s", res.c_str()); return res; } -- Gitee