!7914 将napi对pending exception的打印由debug改回error级别

Merge pull request !7914 from qibao/master
This commit is contained in:
openharmony_ci 2024-06-25 02:31:03 +00:00 committed by Gitee
commit e6799692aa
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 3 deletions

View File

@ -3892,7 +3892,7 @@ void JSNApi::PrintExceptionInfo(const EcmaVM *vm)
}
JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, exceptionHandle);
ecmascript::CString string = ConvertToString(*result);
LOG_ECMA(DEBUG) << string;
LOG_ECMA(ERROR) << string;
ThrowException(vm, exception);
}

View File

@ -49,7 +49,7 @@
CROSS_THREAD_CHECK(vm); \
do { \
if (thread->HasPendingException()) { \
LOG_ECMA(DEBUG) << "Pending exception before " << __FUNCTION__ << " called in line:" \
LOG_ECMA(ERROR) << "Pending exception before " << __FUNCTION__ << " called in line:" \
<< __LINE__ << ", exception details as follows:"; \
JSNApi::PrintExceptionInfo(vm); \
return returnVal; \
@ -60,7 +60,7 @@
CROSS_THREAD_CHECK(vm); \
do { \
if (thread->HasPendingException()) { \
LOG_ECMA(DEBUG) << "Pending exception before " << __FUNCTION__ << " called, in line:" \
LOG_ECMA(ERROR) << "Pending exception before " << __FUNCTION__ << " called, in line:" \
<< __LINE__ << ", exception details as follows:"; \
JSNApi::PrintExceptionInfo(vm); \
return; \