MCPcopy Create free account
hub / github.com/Roy3838/Observer / _deprecated

Function _deprecated

api/remote.py:558–563  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

556
557
558async 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
566def _anon(code: str) -> str:

Callers 4

remote_inboxFunction · 0.85
remote_telegram_inboxFunction · 0.85
remote_replyFunction · 0.85
remote_telegram_replyFunction · 0.85

Calls 1

get_redisFunction · 0.90

Tested by

no test coverage detected