fancyvisuals: Update logger to 0.0.7

This commit is contained in:
Oliver
2025-08-30 15:17:19 +02:00
parent 001c903cbf
commit a02a4bac70
2 changed files with 8 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
package de.oliver.fancyvisuals.nametags.store; package de.oliver.fancyvisuals.nametags.store;
import de.oliver.fancyanalytics.logger.properties.ThrowableProperty;
import de.oliver.fancyvisuals.FancyVisuals; import de.oliver.fancyvisuals.FancyVisuals;
import de.oliver.fancyvisuals.api.Context; import de.oliver.fancyvisuals.api.Context;
import de.oliver.fancyvisuals.api.nametags.Nametag; import de.oliver.fancyvisuals.api.nametags.Nametag;
@@ -28,7 +29,6 @@ public class JsonNametagStore implements NametagStore {
jdb.set(context.getName() + "/" + id, nametag); jdb.set(context.getName() + "/" + id, nametag);
} catch (IOException e) { } catch (IOException e) {
FancyVisuals.getFancyLogger().error("Failed to set nametag for id " + id, ThrowableProperty.of(e)); FancyVisuals.getFancyLogger().error("Failed to set nametag for id " + id, ThrowableProperty.of(e));
FancyVisuals.getFancyLogger().error(e);
} }
} }
@@ -39,8 +39,7 @@ public class JsonNametagStore implements NametagStore {
try { try {
nametag = jdb.get(context.getName() + "/" + id, Nametag.class); nametag = jdb.get(context.getName() + "/" + id, Nametag.class);
} catch (IOException e) { } catch (IOException e) {
FancyVisuals.getFancyLogger().error("Failed to get nametag for id " + id); FancyVisuals.getFancyLogger().error("Failed to get nametag for id " + id, ThrowableProperty.of(e));
FancyVisuals.getFancyLogger().error(e);
} }
return nametag; return nametag;
@@ -58,8 +57,7 @@ public class JsonNametagStore implements NametagStore {
try { try {
jdb.getAll(context.getName(), Nametag.class); jdb.getAll(context.getName(), Nametag.class);
} catch (IOException e) { } catch (IOException e) {
FancyVisuals.getFancyLogger().error("Failed to get all nametags"); FancyVisuals.getFancyLogger().error("Failed to get all nametags", ThrowableProperty.of(e));
FancyVisuals.getFancyLogger().error(e);
} }
return nametags; return nametags;

View File

@@ -1,5 +1,6 @@
package de.oliver.fancyvisuals.playerConfig; package de.oliver.fancyvisuals.playerConfig;
import de.oliver.fancyanalytics.logger.properties.ThrowableProperty;
import de.oliver.fancyvisuals.FancyVisuals; import de.oliver.fancyvisuals.FancyVisuals;
import de.oliver.jdb.JDB; import de.oliver.jdb.JDB;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
@@ -37,8 +38,7 @@ public class JsonPlayerConfigStore {
try { try {
playerConfig = jdb.get(uuid.toString(), PlayerConfig.class); playerConfig = jdb.get(uuid.toString(), PlayerConfig.class);
} catch (Exception e) { } catch (Exception e) {
FancyVisuals.getFancyLogger().error("Failed to get player config for uuid " + uuid); FancyVisuals.getFancyLogger().error("Failed to get player config for uuid " + uuid, ThrowableProperty.of(e));
FancyVisuals.getFancyLogger().error(e);
} }
return playerConfig != null ? playerConfig : getDefaultPlayerConfig(); return playerConfig != null ? playerConfig : getDefaultPlayerConfig();
@@ -54,8 +54,7 @@ public class JsonPlayerConfigStore {
try { try {
jdb.set(uuid.toString(), playerConfig); jdb.set(uuid.toString(), playerConfig);
} catch (Exception e) { } catch (Exception e) {
FancyVisuals.getFancyLogger().error("Failed to set player config for uuid " + uuid); FancyVisuals.getFancyLogger().error("Failed to set player config for uuid " + uuid, ThrowableProperty.of(e));
FancyVisuals.getFancyLogger().error(e);
} }
} }
@@ -80,8 +79,7 @@ public class JsonPlayerConfigStore {
try { try {
playerConfig = jdb.get("default", PlayerConfig.class); playerConfig = jdb.get("default", PlayerConfig.class);
} catch (Exception e) { } catch (Exception e) {
FancyVisuals.getFancyLogger().error("Failed to get default player config"); FancyVisuals.getFancyLogger().error("Failed to get default player config", ThrowableProperty.of(e));
FancyVisuals.getFancyLogger().error(e);
} }
if (playerConfig == null) { if (playerConfig == null) {
@@ -90,8 +88,7 @@ public class JsonPlayerConfigStore {
try { try {
jdb.set("default", DEFAULT_PLAYER_CONFIG); jdb.set("default", DEFAULT_PLAYER_CONFIG);
} catch (Exception e) { } catch (Exception e) {
FancyVisuals.getFancyLogger().error("Failed to set default player config"); FancyVisuals.getFancyLogger().error("Failed to set default player config", ThrowableProperty.of(e));
FancyVisuals.getFancyLogger().error(e);
} }
} }