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:
Tobias Nett 2022-08-22 08:51:25 +02:00 committed by GitHub
parent 27855180e4
commit ceff6a917f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}
}