Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jul 23, 2024
1 parent 2def943 commit ea1ed95
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,16 @@ abstract class MappingResolver<T : MappingResolver<T>>(val name: String) {
}
if (toRemove.isEmpty()) {
//TODO: better logging, determine case
for (entry in sorted) {
LOGGER.error { "Resolved: ${entry.id}" }
LOGGER.error { " requires: ${entry.requires}" }
LOGGER.error { " provides: ${entry.provides.map { it.first }}" }
}
for (entry in resolvedEntries) {
LOGGER.error { "Unresolved: ${entry.id}" }
LOGGER.error { " requires: ${entry.requires}" }
LOGGER.error { " provides: ${entry.provides.map { it.first }}" }
}
throw IllegalStateException("Circular dependency detected, or missing required ns, remaining: ${resolvedEntries.map { it.id }}")
}

Expand Down

0 comments on commit ea1ed95

Please sign in to comment.