Skip to content

Commit

Permalink
common: add traces to monitorQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
tilacog committed Jun 28, 2023
1 parent af9ec50 commit ded9d92
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/indexer-common/src/indexer-management/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,12 @@ export class ActionManager {
const logger = this.logger.child({ component: 'QueueMonitor' })
const approvedActions: Eventual<Action[]> = timer(30_000).tryMap(
async () => {
this.logger.trace('Fetching approved actions')
return await ActionManager.fetchActions(this.models, {
logger.trace('Fetching approved actions')
const actions = await ActionManager.fetchActions(this.models, {
status: ActionStatus.APPROVED,
})
logger.trace(`Fetched ${actions.length} approved actions`)
return actions
},
{
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit ded9d92

Please sign in to comment.