You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that when a process ends, not all the logs are written because they are still in the buffer. File transport has a flush event you can hook on to prevent this. This transport does not offer the same, so I have had to do something like this...
//allow papertrail to flush the buffer
setTimeout(() => {
logger.info('lambda#handler: success');
context.succeed('success');
}, 1000);
The text was updated successfully, but these errors were encountered:
I have noticed that when a process ends, not all the logs are written because they are still in the buffer. File transport has a flush event you can hook on to prevent this. This transport does not offer the same, so I have had to do something like this...
The text was updated successfully, but these errors were encountered: