File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/api/integrations/channel/whatsapp Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ export class BaileysStartupService extends ChannelStartupService {
425425
426426 this . logger . log ( `Connection state changed to: ${ connection } , instance: ${ this . instance . id } ` ) ;
427427 if ( lastDisconnect ?. error ) {
428- this . logger . warn ( `Connection error:` , lastDisconnect . error ) ;
428+ this . logger . warn ( `Connection error: ${ JSON . stringify ( lastDisconnect . error ) } ` ) ;
429429 }
430430 }
431431
@@ -1997,7 +1997,7 @@ export class BaileysStartupService extends ChannelStartupService {
19971997 this . logger . log ( `Message sent successfully with ID: ${ result . key . id } ` ) ;
19981998 return result ;
19991999 } catch ( error ) {
2000- this . logger . error ( `Failed to send message to ${ sender } :` , error ) ;
2000+ this . logger . error ( `Failed to send message to ${ sender } : ${ error . message || JSON . stringify ( error ) } ` ) ;
20012001 throw error ;
20022002 }
20032003 }
You can’t perform that action at this time.
0 commit comments