diff --git a/pom.xml b/pom.xml
index c26e251..9a3037a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,7 @@
de.rettichlp
shantybot
- 1.2.0
+ 1.2.1
jar
ShantyBot
@@ -67,7 +67,7 @@
5.0.2
-
+
dev.arbjerg
lavaplayer
@@ -78,7 +78,7 @@
dev.lavalink.youtube
common
- 1.5.2
+ 1.6.0
diff --git a/src/main/java/de/rettichlp/shantybot/ShantyBot.java b/src/main/java/de/rettichlp/shantybot/ShantyBot.java
index d4bbb8e..3d43fa4 100644
--- a/src/main/java/de/rettichlp/shantybot/ShantyBot.java
+++ b/src/main/java/de/rettichlp/shantybot/ShantyBot.java
@@ -102,5 +102,9 @@ private static void startDiscordBot() throws InterruptedException {
).queue());
audioPlayerManager = new AudioPlayerManager();
+
+ ofNullable(discordBotProperties.getGuild())
+ .ifPresentOrElse(guild -> log.info("Discord bot connected to the guild requested by the properties: {}", guild.getName()),
+ () -> log.error("Discord bot cannot create connection to guild requested by the properties"));
}
}
diff --git a/src/main/java/de/rettichlp/shantybot/common/lavaplayer/AudioPlayerManager.java b/src/main/java/de/rettichlp/shantybot/common/lavaplayer/AudioPlayerManager.java
index 8cb75bd..cb3320b 100644
--- a/src/main/java/de/rettichlp/shantybot/common/lavaplayer/AudioPlayerManager.java
+++ b/src/main/java/de/rettichlp/shantybot/common/lavaplayer/AudioPlayerManager.java
@@ -14,6 +14,7 @@
import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
import com.sedmelluq.discord.lavaplayer.track.AudioTrackInfo;
import dev.lavalink.youtube.YoutubeAudioSourceManager;
+import lombok.extern.log4j.Log4j2;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.entities.MessageEmbed;
@@ -31,6 +32,7 @@
import static de.rettichlp.shantybot.common.services.UtilService.sendSelfDeletingMessage;
import static java.util.Objects.requireNonNull;
+@Log4j2
public class AudioPlayerManager {
private final Map musicManagers;
@@ -117,6 +119,7 @@ public void noMatches() {
@Override
public void loadFailed(FriendlyException e) {
sendSelfDeletingMessage(event, "Fehler beim Laden des Songs!");
+ log.error("Fehler beim Laden des Songs!", e);
}
});
}