Skip to content

Commit e0b3ad0

Browse files
committed
Reduce log noise: downgrade startup and double-click messages to DEBUG
Localization loaded message printed 13x on every deploy (once per worker). Double-reaction warning is expected from fast double-taps, not actionable.
1 parent 7593c41 commit e0b3ad0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/localizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def load():
1919
with open(localization_file, "r") as f:
2020
localizations |= yaml.safe_load(f)
2121

22-
logging.info(f"Loaded {len(localizations)} localization strings.")
22+
logging.debug(f"Loaded {len(localizations)} localization strings.")
2323
return localizations
2424

2525

src/recommendations/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def update_user_meme_reaction(
4747
res = await execute(update_query)
4848
reaction_is_new = res.rowcount > 0
4949
if not reaction_is_new:
50-
logging.warning(f"User {user_id} already reacted to meme {meme_id}!")
50+
logging.debug(f"User {user_id} already reacted to meme {meme_id}!")
5151
return reaction_is_new # I can filter double clicks
5252

5353

0 commit comments

Comments
 (0)