Improve logging around rate-limiting.

This commit is contained in:
Greyson Parrelli
2021-09-02 14:09:48 -04:00
parent 9f995d61f4
commit a940487611
2 changed files with 4 additions and 0 deletions

View File

@@ -467,6 +467,8 @@ public abstract class PushSendJob extends SendJob {
protected void handleProofRequiredException(@NonNull ProofRequiredException proofRequired, @Nullable Recipient recipient, long threadId, long messageId, boolean isMms)
throws ProofRequiredException, RetryLaterException
{
Log.w(TAG, "[Proof Required] Options: " + proofRequired.getOptions());
try {
if (proofRequired.getOptions().contains(ProofRequiredException.Option.PUSH_CHALLENGE)) {
ApplicationDependencies.getSignalServiceAccountManager().requestRateLimitPushChallenge();

View File

@@ -48,6 +48,8 @@ public final class RecaptchaProofBottomSheetFragment extends BottomSheetDialogFr
@Override
public void show(@NonNull FragmentManager manager, @Nullable String tag) {
Log.i(TAG, "Showing reCAPTCHA proof bottom sheet.");
if (manager.findFragmentByTag(tag) == null) {
BottomSheetUtil.show(manager, tag, this);
} else {