diff --git a/common/src/main/ets/default/SwitchUserManager.ts b/common/src/main/ets/default/SwitchUserManager.ts index 32970e87..a6697064 100644 --- a/common/src/main/ets/default/SwitchUserManager.ts +++ b/common/src/main/ets/default/SwitchUserManager.ts @@ -98,7 +98,7 @@ export default class SwitchUserManager { AccountManager.getAccountManager() .queryOsAccountById(accountId) .then((accountInfo) => { - Log.showInfo(TAG, `userChange, accountInfo: ${JSON.stringify(accountInfo)}`); + Log.showInfo(TAG, `userChange, localId: ${accountInfo?.localId}`); this.mUserInfo = parseAccountInfo(accountInfo); this.notifyUserChange(); }) diff --git a/common/src/main/ets/default/SysFaultLogger.ts b/common/src/main/ets/default/SysFaultLogger.ts index 0e8a191e..85dd4d15 100644 --- a/common/src/main/ets/default/SysFaultLogger.ts +++ b/common/src/main/ets/default/SysFaultLogger.ts @@ -33,9 +33,9 @@ export function writeFaultLog(logParam: object) { eventType: hiSysEvent.EventType.FAULT, params: logParam } - Log.showInfo(TAG, "fault log params is : " + JSON.stringify(sysEventInfo)) + Log.showDebug(TAG, "fault log params is : " + JSON.stringify(sysEventInfo)) hiSysEvent.write(sysEventInfo, (err, val) => { - Log.showInfo(TAG, "fault log params is : " + JSON.stringify(sysEventInfo)) + Log.showDebug(TAG, "fault log params is : " + JSON.stringify(sysEventInfo)) Log.showInfo(TAG, `write fault log result: ${val}`) }) } diff --git a/common/src/main/ets/default/abilitymanager/featureAbilityManager.ts b/common/src/main/ets/default/abilitymanager/featureAbilityManager.ts index d78ef390..a568427f 100644 --- a/common/src/main/ets/default/abilitymanager/featureAbilityManager.ts +++ b/common/src/main/ets/default/abilitymanager/featureAbilityManager.ts @@ -32,7 +32,7 @@ export default class FeatureAbilityManager { getAbilityWant(listener) { FeatureAbility.getWant((err, data) => { - Log.showInfo(TAG, `getAbilityWant callBack err: ${JSON.stringify(err)} data: ${JSON.stringify(data)}`); + Log.showInfo(TAG, `getAbilityWant callBack err: ${JSON.stringify(err)}`); if (err.code !== 0) { Log.showError(TAG, `failed to getAbilityWant because ${err.message}`); return; diff --git a/common/src/main/ets/plugindatasource/PluginDataSourceAdapter.ts b/common/src/main/ets/plugindatasource/PluginDataSourceAdapter.ts index d8e08cde..6fbb650d 100644 --- a/common/src/main/ets/plugindatasource/PluginDataSourceAdapter.ts +++ b/common/src/main/ets/plugindatasource/PluginDataSourceAdapter.ts @@ -98,7 +98,7 @@ export default class PluginDataSourceAdapter { }); break; default: - Log.showError(TAG, `name: ${this.mName}, unknown type: ${JSON.stringify(msg)}`); + Log.showError(TAG, `name: ${this.mName}, unknown type: ${data.action}`); } } diff --git a/features/noticeitem/src/main/ets/com/ohos/noticeItem/model/NotificationService.ts b/features/noticeitem/src/main/ets/com/ohos/noticeItem/model/NotificationService.ts index ccce9dac..2c27c7bd 100644 --- a/features/noticeitem/src/main/ets/com/ohos/noticeItem/model/NotificationService.ts +++ b/features/noticeitem/src/main/ets/com/ohos/noticeItem/model/NotificationService.ts @@ -68,7 +68,7 @@ export class NotificationService { loadAllNotifications(): void { NotificationManager.getAllActiveNotifications(TAG, (err, requestsArr) => { - Log.showInfo(TAG, `getAllActiveNotifications error:${err}}, requestsArr: ${JSON.stringify(requestsArr)}`); + Log.showDebug(TAG, `getAllActiveNotifications error:${err}}, requestsArr: ${JSON.stringify(requestsArr)}`); if (Array.isArray(requestsArr)) { for (let i = 0, len = requestsArr.length; i < len; i++) { this.handleNotificationAdd(requestsArr[i]); @@ -124,7 +124,7 @@ export class NotificationService { subscribeNotification(subscriber): void { let callback = (err, data) => { - Log.showInfo(TAG, `subscribeCallback finished err: ${JSON.stringify(err)} data: ${JSON.stringify(data)}`); + Log.showInfo(TAG, `subscribeCallback finished err: ${JSON.stringify(err)}`); }; NotificationManager.subscribeNotification(TAG, subscriber, callback); } diff --git a/features/noticeitem/src/main/ets/com/ohos/noticeItem/model/ParseDataUtil.ts b/features/noticeitem/src/main/ets/com/ohos/noticeItem/model/ParseDataUtil.ts index ed05ceea..37de305f 100644 --- a/features/noticeitem/src/main/ets/com/ohos/noticeItem/model/ParseDataUtil.ts +++ b/features/noticeitem/src/main/ets/com/ohos/noticeItem/model/ParseDataUtil.ts @@ -166,7 +166,7 @@ export default class ParseDataUtil { Log.showInfo(TAG, 'no match content type'); break; } - Log.showInfo(TAG, `notificationType = ${notificationType}, content = ${JSON.stringify(content)}`); + Log.showInfo(TAG, `notificationType = ${notificationType}`); return content; } } diff --git a/features/noticeitem/src/main/ets/com/ohos/noticeItem/viewmodel/NotificationViewModel.ts b/features/noticeitem/src/main/ets/com/ohos/noticeItem/viewmodel/NotificationViewModel.ts index e3795749..4ced3463 100644 --- a/features/noticeitem/src/main/ets/com/ohos/noticeItem/viewmodel/NotificationViewModel.ts +++ b/features/noticeitem/src/main/ets/com/ohos/noticeItem/viewmodel/NotificationViewModel.ts @@ -68,7 +68,7 @@ export class NotificationViewModel { } userChange(userInfo): void { - Log.showInfo(TAG, `UserChange, userInfo: ${JSON.stringify(userInfo)}`); + Log.showInfo(TAG, `UserChange, userId: ${userInfo.userId}`); this.unregisterCallback(); this.mNotificationList.length = 0; this.initFlowControlInfos();