[core] Adjust logs

This commit is contained in:
devlikepro committed 2024-10-27 14:47:58 +07:00
1 parent 9ca96acda2
commit 0f2641909f
1 file changed
+3 -2
+3 -2
View File
@@ -216,9 +216,10 @@ export class SessionManagerCore extends SessionManager {
return;
}
const session = this.session as WhatsappSession;
this.log.info('Unpairing device from account...', { session: name });
this.log.info('Unpairing the device from account...', { session: name });
await session.unpair().catch((err) => {
this.log.warn(`Error while logging out from device: ${err}`);
this.log.warn(`Error while unpairing from device: ${err}`);
});
await sleep(1000);
}