Skip to content

Commit e6c8538

Browse files
committed
Add info logs to action dedup cache hits and misses
1 parent a4004b3 commit e6c8538

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bot/exts/filtering/filtering.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,9 @@ def _should_run_actions(self, ctx: FilterContext, actions: ActionSettings) -> bo
11021102
tuple(sorted(getattr(a, "__qualname__", repr(a)) for a in ctx.additional_actions)),
11031103
)
11041104
if base_key in recent or full_key in recent:
1105+
log.info(f"Cache hit, not running actions {ctx.author} (event={ctx.event.name}): {actions}")
11051106
return False
1107+
log.info(f"Cache miss, running actions on {ctx.author} (event={ctx.event.name}): {actions}")
11061108
recent[base_key] = now
11071109
recent[full_key] = now
11081110
return True

0 commit comments

Comments
 (0)