From 627cef0ae2aa02624185fe1934ca433b434d1568 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Mon, 25 Jul 2016 16:24:28 +0200 Subject: [PATCH] Added some more debugging to UserManager. --- .../java/de/fabianonline/telegram_backup/UserManager.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/de/fabianonline/telegram_backup/UserManager.java b/src/main/java/de/fabianonline/telegram_backup/UserManager.java index 793fa65..e452a21 100644 --- a/src/main/java/de/fabianonline/telegram_backup/UserManager.java +++ b/src/main/java/de/fabianonline/telegram_backup/UserManager.java @@ -31,6 +31,9 @@ import java.security.NoSuchAlgorithmException; import java.io.IOException; import java.io.File; +import org.slf4j.LoggerFactory; +import org.slf4j.Logger; + public class UserManager { public TLUser user = null; public String phone = null; @@ -39,14 +42,17 @@ public class UserManager { private TLSentCode sent_code = null; private TLAuthorization auth = null; private boolean password_needed = false; + private static Logger logger = LoggerFactory.getLogger(UserManager.class); public UserManager(TelegramClient c) throws IOException { this.client = c; + logger.debug("Calling getFullUser"); try { TLUserFull full_user = this.client.usersGetFullUser(new TLInputUserSelf()); this.user = full_user.getUser().getAsUser(); } catch (Exception e) { // This may happen. Ignoring it. + logger.debug("Ignoring exception", e); } }