1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-07-07 00:57:28 +02:00

Revert "Always use Logger class and try to log once per event"

This reverts commit a57a717717a676555b4e28d5746828477c2f9811.
This commit is contained in:
sarayourfriend
2024-03-31 09:28:04 +11:00
parent b0c2f8da04
commit fcdb2f2938
15 changed files with 34 additions and 32 deletions

View File

@ -1,6 +1,5 @@
import {TaskQue} from './TaskQue';
import {EventLoopHandler} from '../EventLoopHandler';
import { Logger } from '../../Logger';
export interface ITaskExecuter<I, O> {
execute(input: I): Promise<O>;
@ -31,7 +30,7 @@ export class TaskExecuter<I, O> implements ITaskExecuter<I, O> {
execute(input: I): Promise<O> {
const promise = this.taskQue.add(input).promise.obj;
this.run().catch(Logger.error);
this.run().catch(console.error);
return promise;
}
}