fix: show display name of pack instead of full cache key
ci/woodpecker/push/docs Pipeline was successful Details
ci/woodpecker/push/jfmod Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2023-08-14 14:32:44 +02:00
parent 6b44fdf9d3
commit c9c4b8513d
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 2 additions and 2 deletions

View File

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