Skip to content

Commit

Permalink
chore: change cooldown logs to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
F33RNI committed May 15, 2024
1 parent 5949c26 commit 9148cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lmao_process_loop_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ def _request_wrapper(
with cooldown_timer.get_lock():
cooldown_timer_ = cooldown_timer.value
if time.time() - cooldown_timer_ < REQUEST_COOLDOWN:
logging.info("Waiting for cooldown before sending request")
logging.debug("Waiting for cooldown before sending request")
while time.time() - cooldown_timer_ < REQUEST_COOLDOWN:
time.sleep(0.1)
logging.info("Cooldown passed")
logging.debug("Cooldown passed")

with cooldown_timer.get_lock():
cooldown_timer.value = time.time()
Expand Down

0 comments on commit 9148cac

Please sign in to comment.