[core] webjs log error
This commit is contained in:
1 parent
a65041ffcd
commit
edefbe17da
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user