Skip to content

Commit

Permalink
0005922: Added debug logging to File Sync Trigger Tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobvanmeter committed Jul 12, 2023
1 parent ecb4d7b commit 4bc80e1
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -85,6 +85,11 @@ protected void pollForChanges() {
synchronized public DirectorySnapshot trackChanges() {
pollForChanges();
DirectorySnapshot changes = changesSinceLastSnapshot;
if (log.isDebugEnabled()) {
for (FileSnapshot s : changes) {
log.debug(s.getLastEventType().getCode() + ", fileName: " + s.getFileName() + ", relativeDir: " + s.getRelativeDir());
}
}
changesSinceLastSnapshot = new DirectorySnapshot(fileTriggerRouter);
SnapshotUpdater newListener = new SnapshotUpdater(changesSinceLastSnapshot);
fileObserver.addListener(newListener);
Expand Down

0 comments on commit 4bc80e1

Please sign in to comment.