enhance(logging): エラー時もっと詳しい情報が残るように (MisskeyIO#360)
This commit is contained in:
parent
bad14005f8
commit
411a8bd8e7
4 changed files with 72 additions and 11 deletions
|
|
@ -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 { }
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue