enhance(logging): エラー時もっと詳しい情報が残るように (MisskeyIO#360)

This commit is contained in:
まっちゃとーにゅ
2024-01-16 02:29:53 +09:00
committed by GitHub
parent bad14005f8
commit 411a8bd8e7
4 changed files with 72 additions and 11 deletions

View File

@@ -71,7 +71,7 @@ if (!envOption.quiet) {
// Display detail of uncaught exception
process.on('uncaughtException', err => {
try {
logger.error('Uncaught exception', { error: err });
logger.error(`Uncaught exception: ${err.message}`, { error: err });
} catch { }
});