Skip to content

Commit ab1c8a6

Browse files
committed
Fix iterable quoting issue in trace logs
1 parent c935dc9 commit ab1c8a6

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

java-compiler-testing/src/main/java/io/github/ascopes/jct/filemanagers/config/JctFileManagerWorkspaceConfigurer.java

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,17 @@ public JctFileManagerWorkspaceConfigurer(Workspace workspace) {
4949
@Override
5050
public JctFileManager configure(JctFileManager fileManager) {
5151
LOGGER.debug("Configuring file manager with user-provided paths");
52-
var paths = workspace.getAllPaths();
53-
LOGGER
54-
.atTrace()
55-
.setMessage("Copying user-defined paths from workspace into file manager ({})")
56-
.addArgument(() -> StringUtils.quoted(paths))
57-
.log();
58-
workspace.getAllPaths().forEach(fileManager::addPaths);
52+
53+
workspace.getAllPaths().forEach((location, paths) -> {
54+
LOGGER
55+
.atTrace()
56+
.setMessage("Adding paths from workspace location {} into file manager ({})")
57+
.addArgument(() -> StringUtils.quoted(location.getName()))
58+
.addArgument(() -> StringUtils.quotedIterable(paths))
59+
.log();
60+
fileManager.addPaths(location, paths);
61+
});
62+
5963
return fileManager;
6064
}
6165
}

0 commit comments

Comments
 (0)