Update logger to 0.0.7 everywhere

This commit is contained in:
Oliver
2025-08-30 15:05:36 +02:00
parent d176f09aa0
commit 001c903cbf
27 changed files with 49 additions and 60 deletions

View File

@@ -56,7 +56,7 @@ dependencies {
implementation(project(":libraries:config"))
implementation("de.oliver.FancyAnalytics:java-sdk:0.0.4")
implementation("de.oliver.FancyAnalytics:mc-api:0.1.9")
implementation("de.oliver.FancyAnalytics:logger:0.0.6")
implementation("de.oliver.FancyAnalytics:logger:0.0.7")
compileOnly(project(":plugins:fancynpcs:fn-api"))
compileOnly("org.lushplugins:ChatColorHandler:6.0.0")

View File

@@ -10,7 +10,7 @@ dependencies {
compileOnly("io.papermc.paper:paper-api:$minecraftVersion-R0.1-SNAPSHOT")
compileOnly(project(":libraries:common"))
compileOnly("de.oliver.FancyAnalytics:logger:0.0.6")
compileOnly("de.oliver.FancyAnalytics:logger:0.0.7")
implementation("org.lushplugins:ChatColorHandler:6.0.0")

View File

@@ -1,6 +1,7 @@
package com.fancyinnovations.fancydialogs.joinedplayerscache;
import com.fancyinnovations.fancydialogs.FancyDialogsPlugin;
import de.oliver.fancyanalytics.logger.properties.ThrowableProperty;
import de.oliver.jdb.JDB;
import java.util.Collections;
@@ -27,8 +28,7 @@ public class JoinedPlayersCache {
FancyDialogsPlugin.get().getFancyLogger().debug("Loaded joined players from file.");
}
} catch (Exception e) {
FancyDialogsPlugin.get().getFancyLogger().error("Failed to load joined players cache");
FancyDialogsPlugin.get().getFancyLogger().error(e);
FancyDialogsPlugin.get().getFancyLogger().error("Failed to load joined players cache", ThrowableProperty.of(e));
}
}
@@ -37,8 +37,7 @@ public class JoinedPlayersCache {
jdb.set("joined_players", playersJoined);
FancyDialogsPlugin.get().getFancyLogger().debug("Saved joined players cache");
} catch (Exception e) {
FancyDialogsPlugin.get().getFancyLogger().error("Failed to save joined players cache");
FancyDialogsPlugin.get().getFancyLogger().error(e);
FancyDialogsPlugin.get().getFancyLogger().error("Failed to save joined players cache", ThrowableProperty.of(e));
}
}

View File

@@ -2,6 +2,7 @@ package com.fancyinnovations.fancydialogs.storage;
import com.fancyinnovations.fancydialogs.FancyDialogsPlugin;
import com.fancyinnovations.fancydialogs.api.data.DialogData;
import de.oliver.fancyanalytics.logger.properties.ThrowableProperty;
import de.oliver.jdb.JDB;
import java.io.IOException;
@@ -22,8 +23,7 @@ public class JsonDialogStorage implements DialogStorage {
try {
jdb.set(dialog.id(), dialog);
} catch (IOException e) {
FancyDialogsPlugin.get().getFancyLogger().error("Failed to save dialog " + dialog.id());
FancyDialogsPlugin.get().getFancyLogger().error(e);
FancyDialogsPlugin.get().getFancyLogger().error("Failed to save dialog " + dialog.id(), ThrowableProperty.of(e));
}
}
@@ -46,8 +46,7 @@ public class JsonDialogStorage implements DialogStorage {
try {
dialogs = jdb.getAll("", DialogData.class);
} catch (IOException e) {
FancyDialogsPlugin.get().getFancyLogger().error("Failed to load all dialogs");
FancyDialogsPlugin.get().getFancyLogger().error(e);
FancyDialogsPlugin.get().getFancyLogger().error("Failed to load all dialogs", ThrowableProperty.of(e));
}
return dialogs;