Skip to content

Commit

Permalink
feat(filters): usage monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
OrenZhang committed Feb 27, 2025
1 parent 2df75bb commit 3c4bc7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions filters/usage_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ async def outlet(
__user__ = __user__ or {}
__metadata__ = __metadata__ or {}
user_id = __user__["id"]
username = __user__.get("username", user_id)

if self.outage_map[user_id]:
return body
Expand All @@ -108,7 +107,7 @@ async def outlet(

await __event_emitter__({"type": "status", "data": {"description": stats, "done": True}})

logger.info("usage_monitor: %s %s", username, stats)
logger.info("usage_monitor: %s %s", user_id, stats)
return body

except Exception as err:
Expand Down

0 comments on commit 3c4bc7f

Please sign in to comment.