mirror of
https://github.com/MovingBlocks/Terasology
synced 2026-05-24 09:28:22 +00:00
chore(world): improve logging for BlockManager (#5067)
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.
This commit is contained in:
parent
27855180e4
commit
ceff6a917f
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue