Skip to content

Commit

Permalink
add log for censorship retry
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfk committed Mar 27, 2024
1 parent 216941d commit 7708a03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bento_beacon/utils/censorship.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def censorship_retry() -> tuple[int | None, int | None]:
raise APIException(message="error reading censorship settings from katsu: "
+ f"max_filters: {max_filters}, count_threshold: {count_threshold}")

current_app.logger.info(
f"setting censorship parameters max_filters: {max_filters}, count_threshold: {count_threshold}")
set_censorship_settings(max_filters, count_threshold)
return max_filters, count_threshold

Expand Down

0 comments on commit 7708a03

Please sign in to comment.