[core] webjs log error

This commit is contained in:
devlikepro committed 2024-08-27 16:42:42 +07:00
1 parent a65041ffcd
commit edefbe17da
1 file changed
+1 -1
+1 -1
View File
@@ -235,7 +235,7 @@ export class WhatsappSessionWebJSCore extends WhatsappSession {
this.whatsapp?.removeAllListeners();
this.startDelayedJob.cancel();
this.whatsapp?.destroy().catch((error) => {
this.logger.warn('Failed to destroy the client', error);
this.logger.warn(error, 'Failed to destroy the client');
});
} catch (error) {
this.logger.error(error);