未验证 提交 6f976da7 编写于 作者: O openharmony_ci 提交者: Gitee

!5796 hilog日志打印信息优化

Merge pull request !5796 from chenxuihui/master
...@@ -260,7 +260,7 @@ describe('HilogJsTest', function () { ...@@ -260,7 +260,7 @@ describe('HilogJsTest', function () {
it('testHilogJsApi17', 2, function () { it('testHilogJsApi17', 2, function () {
console.info('testHilogJsApi17 start'); console.info('testHilogJsApi17 start');
try{ try{
hilog.debug(0x3200, "HILOGTEST", "%{public}f", [2.1]) hilog.debug(0x3200, "HILOGTEST", "%{public}d", [2.1])
}catch(error){ }catch(error){
console.log(`testHilogJsApi17 got an error: ${JSON.stringify(error)}`) console.log(`testHilogJsApi17 got an error: ${JSON.stringify(error)}`)
expect().assertFail(); expect().assertFail();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册