Skip to content

Commit

Permalink
chore: log PgWriteQueue error
Browse files Browse the repository at this point in the history
Signed-off-by: bestmike007 <i@bestmike007.com>
  • Loading branch information
bestmike007 committed Mar 6, 2024
1 parent 566a65d commit fdb956d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datastore/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ export class PgWriteQueue {
}
enqueue(task: Parameters<PQueue['add']>[0]): void {
const p = this.queue.add(task);
p.catch(void 0);
p.catch(e => logger.error(e, 'PgWriteQueue task failed'));
this.tasks.push(p);
}
async done(): Promise<void> {
Expand Down

0 comments on commit fdb956d

Please sign in to comment.