Browse Source

fix log messages

MasterCake 2 years ago
parent
commit
6a447495a4
1 changed files with 3 additions and 3 deletions
  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;
-			TelegramChat.getInstance().getLogger().info("[Telegram] Established a connection with the telegram servers.");
+			TelegramChat.getInstance().getLogger().info("Established a connection with the telegram servers.");
 			connected = true;
 			return true;
 		} catch (Exception e) {
 			connected = false;
-			TelegramChat.getInstance().getLogger().info("[Telegram] Sorry, but could not connect to Telegram servers. The token could be wrong.");
+			TelegramChat.getInstance().getLogger().warning("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();
-			TelegramChat.getInstance().getLogger().info("[Telegram] Disconnected from Telegram, reconnect...");
+			TelegramChat.getInstance().getLogger().info("Disconnected from Telegram, reconnect...");
 		}
 
 	}