Track updated contacts

This commit is contained in:
Adhiraj Singh
2020-12-12 14:06:46 +05:30
parent eb7b8506a9
commit b72e2dfcf9
4 changed files with 53 additions and 8 deletions

View File

@@ -41,7 +41,7 @@ export class WAConnection extends Base {
const willReconnect = !loggedOut && (tries < options?.maxRetries) && (this.state === 'connecting')
const reason = loggedOut ? DisconnectReason.invalidSession : error.message
this.logger.warn ({ error }, `connect attempt ${tries} failed${ willReconnect ? ', retrying...' : ''}`)
this.logger.warn ({ error }, `connect attempt ${tries} failed: ${error}${ willReconnect ? ', retrying...' : ''}`)
if ((this.state as string) !== 'close' && !willReconnect) {
this.closeInternal (reason)