🔊 Log parsed movies in Savoy filter
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 10 Feb 2024 07:32:28 +0000 (08:32 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 10 Feb 2024 07:32:28 +0000 (08:32 +0100)
src/main/java/net/pterodactylus/rhynodge/filters/webpages/savoy/SavoyTicketsFilter.java

index c418a4c..8f2fc74 100644 (file)
@@ -22,6 +22,7 @@ import net.pterodactylus.rhynodge.State;
 import net.pterodactylus.rhynodge.states.HtmlState;
 import net.pterodactylus.rhynodge.states.OutputState;
 
+import org.apache.log4j.Logger;
 import org.jetbrains.annotations.NotNull;
 import org.jsoup.nodes.Document;
 import org.jsoup.nodes.Element;
@@ -47,6 +48,7 @@ public class SavoyTicketsFilter implements Filter {
 
                HtmlState htmlState = (HtmlState) state;
                Collection<Movie> movies = movieExtractor.getMovies(htmlState.document());
+               Logger.getLogger(SavoyTicketsFilter.class).debug("Parsed Movies: " + movies);
                return new OutputState(getPlainTextOutput(movies), getHtmlOutput(movies));
        }