You've already forked pigallery2
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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user