Log that an app build older than /remote/send used `route`, at most hourly per caller, so the logs show who still has to update before the old routes can go.
(route: str, caller: str)
| 556 | |
| 557 | |
| 558 | async def _deprecated(route: str, caller: str) -> None: |
| 559 | """Log that an app build older than /remote/send used `route`, at most hourly per caller, |
| 560 | so the logs show who still has to update before the old routes can go.""" |
| 561 | r = await get_redis() |
| 562 | if await r.set(f"remote:deprecated:{route}:{caller}", "1", nx=True, ex=DEPRECATED_LOG_EVERY): |
| 563 | logger.warning(f"Deprecated route {route} hit by {caller}: app build predates /remote/send") |
| 564 | |
| 565 | |
| 566 | def _anon(code: str) -> str: |
no test coverage detected