Small code fixes / improvements.

This commit is contained in:
Fabian Schlenz 2016-07-25 18:44:37 +02:00
parent 75566ef53a
commit 7b28f8b7d0
2 changed files with 2 additions and 7 deletions

View File

@ -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");

View File

@ -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);
}
}