提交 7f2edc9f 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

better log

上级 0ea6dede
......@@ -429,7 +429,10 @@ export class Contact extends Accessory implements Sayable {
await this.puppet.contactPayloadDirty(this.id)
this.payload = await this.puppet.contactPayload(this.id)
if (newAlias && newAlias !== this.payload.alias) {
log.warn('Contact', 'alias(%s) data got is not same as set', newAlias)
log.warn('Contact', 'alias(%s) sync with server fail: set(%s) is not equal to get(%s)',
newAlias,
this.payload.alias,
)
}
} catch (e) {
log.error('Contact', 'alias(%s) rejected: %s', newAlias, e.message)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册