mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-17 13:49:57 +00:00
Optimize logging statements to avoid string concatenation
Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
This commit is contained in:
@@ -201,7 +201,7 @@ public class ConfigPackImpl implements ConfigPack {
|
||||
|
||||
|
||||
selfLoader.load(template, configuration);
|
||||
logger.info("Loading config pack \"" + template.getID() + "\"");
|
||||
logger.info("Loading config pack \"{}\"", template.getID());
|
||||
|
||||
load(l, platform);
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ public class ConfigRegistry extends OpenRegistryImpl<ConfigPack> {
|
||||
}
|
||||
for(File zip : packsFolder.listFiles(file -> file.getName().endsWith(".zip") || file.getName().endsWith(".terra"))) {
|
||||
try {
|
||||
logger.info("Loading ZIP archive: " + zip.getName());
|
||||
logger.info("Loading ZIP archive: {}", zip.getName());
|
||||
load(new ZipFile(zip), platform);
|
||||
} catch(IOException | ConfigException e) {
|
||||
logger.error("Error loading config pack {}", zip.getName(), e);
|
||||
|
||||
Reference in New Issue
Block a user