mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Add more logging to register
This commit is contained in:
parent
1e685c7cab
commit
4e455d85d6
1 changed files with 3 additions and 0 deletions
|
@ -129,12 +129,15 @@ public class RegistrationManagerImpl implements RegistrationManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
final var registrationApi = unauthenticatedAccountManager.getRegistrationApi();
|
final var registrationApi = unauthenticatedAccountManager.getRegistrationApi();
|
||||||
|
logger.trace("Creating verification session");
|
||||||
String sessionId = NumberVerificationUtils.handleVerificationSession(registrationApi,
|
String sessionId = NumberVerificationUtils.handleVerificationSession(registrationApi,
|
||||||
account.getSessionId(account.getNumber()),
|
account.getSessionId(account.getNumber()),
|
||||||
id -> account.setSessionId(account.getNumber(), id),
|
id -> account.setSessionId(account.getNumber(), id),
|
||||||
voiceVerification,
|
voiceVerification,
|
||||||
captcha);
|
captcha);
|
||||||
|
logger.trace("Requesting verification code");
|
||||||
NumberVerificationUtils.requestVerificationCode(registrationApi, sessionId, voiceVerification);
|
NumberVerificationUtils.requestVerificationCode(registrationApi, sessionId, voiceVerification);
|
||||||
|
logger.debug("Successfully requested verification code");
|
||||||
account.setRegistered(false);
|
account.setRegistered(false);
|
||||||
} catch (DeprecatedVersionException e) {
|
} catch (DeprecatedVersionException e) {
|
||||||
logger.debug("Signal-Server returned deprecated version exception", e);
|
logger.debug("Signal-Server returned deprecated version exception", e);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue