Skip to content

Commit f4c720c

Browse files
committed
Update error logging
1 parent 6018547 commit f4c720c

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/net/clementraynaud/skoice/bot

1 file changed

+2
-2
lines changed

src/main/java/net/clementraynaud/skoice/bot/Bot.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void connect(CommandSender sender) {
116116
.addEventListeners(new ReadyListener(this.plugin))
117117
.build();
118118
} catch (InvalidTokenException | IllegalArgumentException e) {
119-
this.plugin.getLogger().severe(this.plugin.getLang().getMessage("logger.error.bot-could-not-connect"));
119+
this.plugin.getLogger().warning(this.plugin.getLang().getMessage("logger.error.bot-could-not-connect"));
120120
this.plugin.getConfigYamlFile().remove(ConfigField.TOKEN.toString());
121121
if (tokenManager != null) {
122122
tokenManager.sendMessage(this.plugin.getLang().getMessage("chat.configuration.bot-could-not-connect"));
@@ -221,7 +221,7 @@ public void updateStatus() {
221221
this.status = BotStatus.MISSING_PERMISSION;
222222
this.jda.retrieveApplicationInfo().queue(applicationInfo -> {
223223
applicationInfo.setRequiredScopes("applications.commands");
224-
this.plugin.getLogger().severe(this.plugin.getLang().getMessage("logger.error.missing-permission", applicationInfo.getInviteUrl(Permission.ADMINISTRATOR)));
224+
this.plugin.getLogger().warning(this.plugin.getLang().getMessage("logger.error.missing-permission", applicationInfo.getInviteUrl(Permission.ADMINISTRATOR)));
225225
});
226226

227227
} else if (!this.plugin.getConfigYamlFile().contains(ConfigField.VOICE_CHANNEL_ID.toString())) {

0 commit comments

Comments
 (0)