Skip to content

Commit 1ee0ece

Browse files
committed
fix: adding logs
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent d626a1d commit 1ee0ece

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • services/libs/data-access-layer/src/members

services/libs/data-access-layer/src/members/base.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,9 @@ async function refreshCacheInBackground(
569569
params: IQueryMembersAdvancedParams,
570570
): Promise<void> {
571571
try {
572+
log.info(`Refreshing members advanced query cache in background: ${cacheKey}`)
572573
await executeQuery(qx, redis, cacheKey, params)
574+
log.info(`Members advanced query cache refreshed in background: ${cacheKey}`)
573575
} catch (error) {
574576
log.warn('Background cache refresh failed:', error)
575577
}
@@ -584,6 +586,7 @@ async function refreshCountCacheInBackground(
584586
try {
585587
log.info(`Refreshing members advanced count cache in background: ${cacheKey}`)
586588
await executeQuery(qx, redis, cacheKey, { ...params, countOnly: true })
589+
log.info(`Members advanced count cache refreshed in background: ${cacheKey}`)
587590
} catch (error) {
588591
log.warn('Background count cache refresh failed:', error)
589592
}

0 commit comments

Comments
 (0)