File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/api/services/whatsapp Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -148,17 +148,17 @@ export class BaileysStartupService extends WAStartupService {
148148 public mobile : boolean ;
149149
150150 private async recoveringMessages ( ) {
151+ this . logger . info ( 'Recovering messages lost' ) ;
151152 const cacheConf = this . configService . get < CacheConf > ( 'CACHE' ) ;
152153
153154 if ( ( cacheConf ?. REDIS ?. ENABLED && cacheConf ?. REDIS ?. URI !== '' ) || cacheConf ?. LOCAL ?. ENABLED ) {
154155 setInterval ( async ( ) => {
155- this . logger . info ( 'Recovering messages' ) ;
156156 this . messagesLostCache . keys ( ) . then ( ( keys ) => {
157157 keys . forEach ( async ( key ) => {
158158 const message = await this . messagesLostCache . get ( key . split ( ':' ) [ 2 ] ) ;
159159
160160 if ( message . messageStubParameters && message . messageStubParameters [ 0 ] === 'Message absent from node' ) {
161- this . logger . verbose ( 'Message absent from node, retrying to send, key: ' + key . split ( ':' ) [ 2 ] ) ;
161+ this . logger . info ( 'Message absent from node, retrying to send, key: ' + key . split ( ':' ) [ 2 ] ) ;
162162 await this . client . sendMessageAck ( JSON . parse ( message . messageStubParameters [ 1 ] , BufferJSON . reviver ) ) ;
163163 }
164164 } ) ;
You can’t perform that action at this time.
0 commit comments