Ensure that context is always provided for error logs
This commit is contained in:
parent
7418a5c663
commit
be087c3498
5 changed files with 18 additions and 5 deletions
|
@ -16,6 +16,6 @@ export function assert(condition: unknown, message: string): asserts condition {
|
|||
}
|
||||
throw err;
|
||||
}
|
||||
log.error(err);
|
||||
log.error('assert failure:', err && err.stack ? err.stack : err);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue