reduce log spam from QueueProcessorService
This commit is contained in:
parent
3e9ca84347
commit
22653efdc4
3 changed files with 141 additions and 50 deletions
|
|
@ -34,6 +34,9 @@ function renderTo(err: unknown, parts: string[]): void {
|
|||
}
|
||||
|
||||
function printError(err: unknown): string {
|
||||
if (err === undefined) return 'undefined';
|
||||
if (err === null) return 'null';
|
||||
|
||||
if (err instanceof IdentifiableError) {
|
||||
if (err.message) {
|
||||
return `${err.name} ${err.id}: ${err.message}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue