enhance(logging): エラー時もっと詳しい情報が残るように (MisskeyIO#360)
This commit is contained in:
@@ -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 { }
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user