diff --git a/utils/src/b_error/b_error.cpp b/utils/src/b_error/b_error.cpp index 0a5867296f936419b85f8d47663ef0621924b63e..cb76bda14f94531290246c60c57be4f9fca59122 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; }