fix: show display name of pack instead of full cache key
This commit is contained in:
parent
6b44fdf9d3
commit
c9c4b8513d
|
@ -119,13 +119,13 @@ public class MetaCache {
|
|||
public static void load(CacheKey key) {
|
||||
if (Files.exists(key.dataLocation())) {
|
||||
if (RespackoptsConfig.debugLogs)
|
||||
Respackopts.LOGGER.info("Loading configs for: " + key);
|
||||
Respackopts.LOGGER.info("Loading configs for: " + key.displayName());
|
||||
try (Reader reader = Files.newBufferedReader(key.dataLocation())) {
|
||||
ConfigBranch b = Respackopts.GSON.fromJson(reader, ConfigBranch.class);
|
||||
if (PACK_STATES.containsKey(key))
|
||||
getBranch(key).sync(b, ConfigSyncMode.CONF_LOAD);
|
||||
} catch (IOException e) {
|
||||
Respackopts.LOGGER.error("Failed to load " + key, e);
|
||||
Respackopts.LOGGER.error("Failed to load " + key.displayName(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue