mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-12-22 16:48:25 +01:00
Replace concatenation with parameterized log message
This commit is contained in:
parent
eea48d6c74
commit
83d6348f0d
@ -55,7 +55,7 @@ public abstract class AbstractSave {
|
||||
try (final FileReader fr = new FileReader(file)) {
|
||||
read(GSON.fromJson(fr, JsonObject.class));
|
||||
} catch (Exception e) {
|
||||
ViaFabricPlus.global().getLogger().error("Failed to read file: " + file.getName() + "!", e);
|
||||
ViaFabricPlus.global().getLogger().error("Failed to read file: {}!", file.getName(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -68,7 +68,7 @@ public abstract class AbstractSave {
|
||||
file.delete();
|
||||
file.createNewFile();
|
||||
} catch (IOException e) {
|
||||
ViaFabricPlus.global().getLogger().error("Failed to create file: " + file.getName() + "!", e);
|
||||
ViaFabricPlus.global().getLogger().error("Failed to create file: {}!", file.getName(), e);
|
||||
}
|
||||
|
||||
try (final FileWriter fw = new FileWriter(file)) {
|
||||
@ -77,7 +77,7 @@ public abstract class AbstractSave {
|
||||
fw.write(GSON.toJson(parentNode));
|
||||
fw.flush();
|
||||
} catch (IOException e) {
|
||||
ViaFabricPlus.global().getLogger().error("Failed to write file: " + file.getName() + "!", e);
|
||||
ViaFabricPlus.global().getLogger().error("Failed to write file: {}!", file.getName(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user