mirror of
https://github.com/openharmony/applications_systemui.git
synced 2026-07-01 23:15:28 -04:00
@@ -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();
|
||||
})
|
||||
|
||||
@@ -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}`)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user