mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-08-29 02:36:11 -06:00
Fix error json
This commit is contained in:
parent
7df26eaa25
commit
e430d9e3e1
@ -425,7 +425,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
|
|
||||||
this.logger.log(`Connection state changed to: ${connection}, instance: ${this.instance.id}`);
|
this.logger.log(`Connection state changed to: ${connection}, instance: ${this.instance.id}`);
|
||||||
if (lastDisconnect?.error) {
|
if (lastDisconnect?.error) {
|
||||||
this.logger.warn(`Connection error:`, lastDisconnect.error);
|
this.logger.warn(`Connection error: ${JSON.stringify(lastDisconnect.error)}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1997,7 +1997,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
this.logger.log(`Message sent successfully with ID: ${result.key.id}`);
|
this.logger.log(`Message sent successfully with ID: ${result.key.id}`);
|
||||||
return result;
|
return result;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.logger.error(`Failed to send message to ${sender}:`, error);
|
this.logger.error(`Failed to send message to ${sender}: ${error.message || JSON.stringify(error)}`);
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user