|
27 | 27 | import me.itzg.helpers.json.ObjectMappers; |
28 | 28 | import me.itzg.helpers.modrinth.model.DependencyId; |
29 | 29 | import me.itzg.helpers.modrinth.model.ModpackIndex; |
| 30 | +import me.itzg.helpers.modrinth.model.ModpackIndex.ModpackFile; |
30 | 31 | import me.itzg.helpers.quilt.QuiltInstaller; |
31 | 32 | import org.jetbrains.annotations.Blocking; |
32 | 33 | import org.jetbrains.annotations.VisibleForTesting; |
@@ -99,6 +100,10 @@ public Mono<Installation> processModpack(SharedFetch sharedFetch) { |
99 | 100 | ); |
100 | 101 | } |
101 | 102 |
|
| 103 | + if (log.isDebugEnabled()) { |
| 104 | + debugLogModpackIndex(modpackIndex); |
| 105 | + } |
| 106 | + |
102 | 107 | if (!Objects.equals("minecraft", modpackIndex.getGame())) { |
103 | 108 | return Mono.error( |
104 | 109 | new InvalidParameterException( |
@@ -126,6 +131,15 @@ public Mono<Installation> processModpack(SharedFetch sharedFetch) { |
126 | 131 | ); |
127 | 132 | } |
128 | 133 |
|
| 134 | + private void debugLogModpackIndex(ModpackIndex modpackIndex) { |
| 135 | + log.debug("Modpack index: name={}, game={}, versionId={}", |
| 136 | + modpackIndex.getName(), modpackIndex.getGame(), modpackIndex.getVersionId() |
| 137 | + ); |
| 138 | + for (final ModpackFile file : modpackIndex.getFiles()) { |
| 139 | + log.debug("Modpack file: path={}, env={}", file.getPath(), file.getEnv()); |
| 140 | + } |
| 141 | + } |
| 142 | + |
129 | 143 | private Flux<Path> processModFiles(ModpackIndex modpackIndex) { |
130 | 144 | return Flux.fromStream( |
131 | 145 | modpackIndex.getFiles().stream() |
|
0 commit comments