Commit 88e73f52 authored by Marcel's avatar Marcel

Add debug logging possibilities

parent 119b6884
Pipeline #45048256 passed with stage
in 1 minute and 7 seconds
......@@ -5,7 +5,7 @@
<groupId>de.apis-stuttgart</groupId>
<artifactId>churchtools-to-songbeamer</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
<packaging>jar</packaging>
<name>churchtools-to-songbeamer</name>
......
......@@ -36,6 +36,8 @@ public class ChurchtoolsToSongbeamerApplication {
@Bean
public CommandLineRunner run() {
return args -> {
log.debug("Debug logging is active.");
initGUI();
// Check config
......
......@@ -79,6 +79,8 @@ public class CtAgendaService {
Arrays.sort(items);
log.debug("Agenda: " + Arrays.toString(items));
return items;
}
......
......@@ -56,6 +56,8 @@ public class CtEventService {
Arrays.sort(events);
log.debug("Events: " + Arrays.toString(events));
return events;
}
......
......@@ -109,6 +109,8 @@ public class CtSongService {
Files.write(target, song.getBytes(StandardCharsets.ISO_8859_1));
log.debug("Song: " + song);
} else {
log.error("Error while fetching all songs.");
}
......@@ -132,6 +134,8 @@ public class CtSongService {
allSongs = response.getBody().getData().get("songs").values();
log.debug("Songs: " + allSongs);
} else {
log.error("Error while fetching all songs.");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment