Skip to content

Commit 9992774

Browse files
committed
fix: Pass the logger to the file data poller
The poller logs a change callback that throws, so it needs the source's logger. This compiles once the branch includes the poller constructor that takes a logger.
1 parent f6de088 commit 9992774

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/sdk/server/src/main/java/com/launchdarkly/sdk/server/integrations/FileOverrideSourceImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void onError(FileDataException e) {
9696
break;
9797
case POLLING:
9898
default:
99-
poller = new FileDataPoller(paths, pollInterval, reloader::trigger);
99+
poller = new FileDataPoller(paths, pollInterval, reloader::trigger, logger);
100100
break;
101101
}
102102
}

0 commit comments

Comments
 (0)