MasterCake преди 2 години
родител
ревизия
8a751db08a
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/main/java/de/Linus122/Telegram/Telegram.java

+ 3 - 3
src/main/java/de/Linus122/Telegram/Telegram.java

@@ -54,12 +54,12 @@ public class Telegram {
 		try {
 			JsonObject obj = sendGet(String.format(API_URL_GETME, token));
 			authJson = obj;
-			System.out.print("[Telegram] Established a connection with the telegram servers.");
+			TelegramChat.getInstance().getLogger().info("[Telegram] Established a connection with the telegram servers.");
 			connected = true;
 			return true;
 		} catch (Exception e) {
 			connected = false;
-			System.out.print("[Telegram] Sorry, but could not connect to Telegram servers. The token could be wrong.");
+			TelegramChat.getInstance().getLogger().info("[Telegram] Sorry, but could not connect to Telegram servers. The token could be wrong.");
 			return false;
 		}
 	}
@@ -214,7 +214,7 @@ public class Telegram {
 			reader.close();
 		} catch (Exception e) {
 			reconnect();
-			System.out.print("[Telegram] Disconnected from Telegram, reconnect...");
+			TelegramChat.getInstance().getLogger().info("[Telegram] Disconnected from Telegram, reconnect...");
 		}
 
 	}