Skip to content

Commit

Permalink
Increase log level for scheduler (#3152)
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne authored Apr 20, 2023
1 parent cb180b4 commit 743ba5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export class MatrixScheduler<T = ISendEventResponse> {
);
if (waitTimeMs === -1) {
// give up (you quitter!)
debuglog("Queue '%s' giving up on event %s", queueName, obj.event.getId());
logger.info("Queue '%s' giving up on event %s", queueName, obj.event.getId());
// remove this from the queue
this.clearQueue(queueName, err);
} else {
Expand All @@ -298,11 +298,11 @@ export class MatrixScheduler<T = ISendEventResponse> {
if (index >= 0) {
this.activeQueues.splice(index, 1);
}
debuglog("Stopping queue '%s' as it is now empty", queueName);
logger.info("Stopping queue '%s' as it is now empty", queueName);
}

private clearQueue(queueName: string, err: unknown): void {
debuglog("clearing queue '%s'", queueName);
logger.info("clearing queue '%s'", queueName);
let obj: IQueueEntry<T> | undefined;
while ((obj = this.removeNextEvent(queueName))) {
obj.defer.reject(err);
Expand Down

0 comments on commit 743ba5f

Please sign in to comment.