Skip to content

Commit eb0dda8

Browse files
committed
NoIssue: Add logging for ignore patterns
1 parent c2d87f8 commit eb0dda8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: src/main/java/com/superzanti/serversync/client/ClientWorker.java

+1
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ public void run() {
235235
for (SyncFile clientFile : clientFiles) {
236236
currentPercent++;
237237

238+
Logger.log(String.format("Ignore patterns: %s", String.join(", ", Main.CONFIG.FILE_IGNORE_LIST)));
238239
if (clientFile.matchesIgnoreListPattern()) {
239240
// User created ignore rules
240241
Logger.debug(Main.strings.getString("ignoring") + " " + clientFile.getFileName());

Diff for: src/main/java/com/superzanti/serversync/server/ServerSetup.java

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public ServerSetup() {
9393

9494
// Main directory scan for mods
9595
Logger.log("Starting scan for sync files: " + dateFormatter.format(new Date()));
96+
Logger.debug(String.format("Ignore patterns: %s", String.join(", ", Main.CONFIG.FILE_IGNORE_LIST)));
9697
standardFiles = fileManager.getModFiles(directories, Main.CONFIG.FILE_IGNORE_LIST, EFileMatchingMode.INGORE);
9798
Logger.log(String.format("Found %d files that match user defined patterns", standardFiles.size()));
9899

0 commit comments

Comments
 (0)