Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/utils/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion src/worker/ingestion/action-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down