Skip to content

Commit

Permalink
chore(world): improve logging for BlockManager (#5067)
Browse files Browse the repository at this point in the history
Improves the logging in `BlockManager` by printing out the (raw) block
family names in case it could not be parsed or processed correctly.

Also, adds a logging statement to a code path which was previously
silently ignored.
  • Loading branch information
skaldarnar authored Aug 22, 2022
1 parent 2785518 commit ceff6a9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ public void initialise(List<String> registeredBlockFamilies,
}
}
registerFamily(family.get());
} else {
logger.warn("No block family found for '{}', skipping.", rawFamilyUri);
}
} catch (BlockUriParseException e) {
logger.error("Failed to parse block family, skipping", e);
logger.error("Failed to parse block family '{}', skipping", rawFamilyUri, e);
}
}
}
Expand Down

0 comments on commit ceff6a9

Please sign in to comment.