mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: more descriptive logging of connection close
This commit is contained in:
@@ -288,7 +288,10 @@ export const makeSocket = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const end = (error: Error | undefined) => {
|
const end = (error: Error | undefined) => {
|
||||||
logger.info({ error }, 'connection closed')
|
logger.info(
|
||||||
|
{ error, trace: error?.stack },
|
||||||
|
error ? 'connection errored' : 'connection closed'
|
||||||
|
)
|
||||||
|
|
||||||
clearInterval(keepAliveReq)
|
clearInterval(keepAliveReq)
|
||||||
clearTimeout(qrTimer)
|
clearTimeout(qrTimer)
|
||||||
|
|||||||
Reference in New Issue
Block a user