diff --git a/src/utils/status.ts b/src/utils/status.ts index 4db19cef..33ec7c5f 100644 --- a/src/utils/status.ts +++ b/src/utils/status.ts @@ -3,6 +3,7 @@ import { threadId } from 'worker_threads' export type StatusMethod = (icon: string, ...message: any[]) => void export interface StatusBlueprint { + debug: StatusMethod info: StatusMethod warn: StatusMethod error: StatusMethod @@ -27,6 +28,7 @@ export class Status implements StatusBlueprint { } } + debug = this.buildMethod('debug') info = this.buildMethod('info') warn = this.buildMethod('warn') error = this.buildMethod('error') diff --git a/src/worker/ingestion/action-manager.ts b/src/worker/ingestion/action-manager.ts index f11820ca..84fb5231 100644 --- a/src/worker/ingestion/action-manager.ts +++ b/src/worker/ingestion/action-manager.ts @@ -37,7 +37,7 @@ export class ActionManager { const refetchedAction = await this.db.fetchAction(actionId) const wasCachedAlready = teamId in this.actionCache && actionId in this.actionCache[teamId] if (refetchedAction) { - status.info( + status.debug( '🍿', wasCachedAlready ? `Refetched action ID ${actionId} (team ID ${teamId}) from DB`