Better logging

This commit is contained in:
Bryan Ashby 2018-12-14 23:08:53 -07:00
parent 874aee5baa
commit b903b2ee82
1 changed files with 3 additions and 1 deletions

View File

@ -313,9 +313,11 @@ class NNTPServer extends NNTPServerBase {
],
err => {
if(err) {
this.log.error( { error : err.message, messageId }, 'Failed to load article');
this.log.error( { error : err.message, messageUuid }, 'Failed to load article');
return resolve(null);
}
this.log.info( { messageUuid, messageId, areaTag : message.areaTag }, 'Serving article');
return resolve(message);
}
);