🔊 Add debug logging
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 27 Oct 2021 11:22:41 +0000 (13:22 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 27 Oct 2021 11:22:41 +0000 (13:22 +0200)
Because I have no idea what is even going on.

src/main/java/net/pterodactylus/xdcc/core/Core.java

index c375308..ea04286 100644 (file)
@@ -888,6 +888,7 @@ public class Core extends AbstractExecutionThreadService {
        @Subscribe
        public void dccSendReceived(final DccSendReceived dccSendReceived) {
                final Optional<Network> network = getNetwork(dccSendReceived.connection());
+               eventBus.post(new GenericMessage(format("Got DCC Send from %s for %s.", dccSendReceived.source(), dccSendReceived.filename())));
                if (!network.isPresent()) {
                        return;
                }