Skip to content

Commit

Permalink
Improving logging of 401 errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Jul 5, 2022
1 parent e412cac commit 314ef34
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -1802,10 +1802,11 @@ private SendMessageResult sendMessage(SignalServiceAddress recipient,
Log.w(TAG, ike);
unidentifiedAccess = Optional.empty();
} catch (AuthorizationFailedException afe) {
Log.w(TAG, afe);
if (unidentifiedAccess.isPresent()) {
Log.w(TAG, "Got an AuthorizationFailedException when trying to send using sealed sender. Falling back.");
unidentifiedAccess = Optional.empty();
} else {
Log.w(TAG, "Got an AuthorizationFailedException without using sealed sender!", afe);
throw afe;
}
} catch (MismatchedDevicesException mde) {
Expand Down

0 comments on commit 314ef34

Please sign in to comment.