mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-12-24 22:15:33 +00:00
Small code fixes / improvements.
This commit is contained in:
parent
75566ef53a
commit
7b28f8b7d0
@ -69,11 +69,6 @@ public class CommandLineController {
|
||||
if (CommandLineOptions.cmd_list_accounts) this.list_accounts();
|
||||
|
||||
logger.debug("Initializing TelegramApp");
|
||||
if (CommandLineOptions.cmd_debug_telegram) {
|
||||
//System.setProperty(org.slf4j.impl.SimpleLogger.DEFAULT_LOG_LEVEL_KEY, "DEBUG");
|
||||
} else {
|
||||
//System.setProperty(org.slf4j.impl.SimpleLogger.DEFAULT_LOG_LEVEL_KEY, "ERROR");
|
||||
}
|
||||
app = new TelegramApp(Config.APP_ID, Config.APP_HASH, Config.APP_MODEL, Config.APP_SYSVER, Config.APP_APPVER, Config.APP_LANG);
|
||||
|
||||
logger.trace("Checking accounts");
|
||||
|
@ -50,9 +50,9 @@ public class UserManager {
|
||||
try {
|
||||
TLUserFull full_user = this.client.usersGetFullUser(new TLInputUserSelf());
|
||||
this.user = full_user.getUser().getAsUser();
|
||||
} catch (Exception e) {
|
||||
} catch (RpcErrorException e) {
|
||||
// This may happen. Ignoring it.
|
||||
logger.debug("Ignoring exception", e);
|
||||
logger.debug("Ignoring exception:", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user