Better debug logs

This commit is contained in:
Bryan Ashby 2022-08-21 15:41:37 -06:00
parent 4a63bc577e
commit 7060bf270b
No known key found for this signature in database
GPG Key ID: C2C1B501E4EFD994
1 changed files with 14 additions and 1 deletions

View File

@ -344,7 +344,7 @@ exports.getModule = class GopherModule extends ServerModule {
} }
messageAreaGenerator(selectorMatch, cb) { messageAreaGenerator(selectorMatch, cb) {
this.log.debug({ selector: selectorMatch[0] }, 'Serving message area content'); this.log.trace({ selector: selectorMatch[0] }, 'Message area request');
// //
// Selector should be: // Selector should be:
// /msgarea - list confs // /msgarea - list confs
@ -395,6 +395,7 @@ exports.getModule = class GopherModule extends ServerModule {
), ),
].join(''); ].join('');
this.log.debug('Gopher serving message conference list');
return cb(response); return cb(response);
} }
@ -465,6 +466,10 @@ exports.getModule = class GopherModule extends ServerModule {
), ),
].join(''); ].join('');
this.log.debug(
{ confTag: exposedConf.confTag },
'Gopher serving message area list'
);
return cb(response); return cb(response);
} }
@ -565,6 +570,7 @@ exports.getModule = class GopherModule extends ServerModule {
), ),
].join(''); ].join('');
this.log.debug({ confTag, areaTag }, 'Gopher serving message list');
return cb(response); return cb(response);
}); });
} }
@ -610,6 +616,13 @@ ID : ${message.messageUuid} (${message.messageId})
${'-'.repeat(70)} ${'-'.repeat(70)}
${msgBody} ${msgBody}
`; `;
this.log.debug(
{
confTag,
areaTag,
uuid: message.messageUuid,
}`Gopher serving message "${message.subject}"`
);
return cb(response); return cb(response);
}); });
}); });