mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-20 07:11:20 +08:00
refactor: replace concatenation log with parameterized
This commit is contained in:
@@ -73,9 +73,7 @@ public class SceneBlock {
|
||||
SceneIndexManager.buildIndex(3, this.groups.values(), g -> g.pos.toPoint());
|
||||
} catch (ScriptException exception) {
|
||||
Grasscutter.getLogger()
|
||||
.error(
|
||||
"An error occurred while loading block " + this.id + " in scene " + sceneId,
|
||||
exception);
|
||||
.error("An error occurred while loading block {} in scene {}", this.id, sceneId, exception);
|
||||
}
|
||||
Grasscutter.getLogger().trace("Successfully loaded block {} in scene {}.", this.id, sceneId);
|
||||
return this;
|
||||
|
||||
@@ -168,8 +168,7 @@ public final class SceneGroup {
|
||||
this.suites.forEach(i -> i.init(this));
|
||||
} catch (ScriptException e) {
|
||||
Grasscutter.getLogger()
|
||||
.error(
|
||||
"An error occurred while loading group " + this.id + " in scene " + sceneId + ".", e);
|
||||
.error("An error occurred while loading group {} in scene {}.", this.id, sceneId, e);
|
||||
} catch (LuaError luaError) {
|
||||
Grasscutter.getLogger()
|
||||
.error(
|
||||
|
||||
@@ -29,7 +29,7 @@ public class SceneMeta {
|
||||
CompiledScript cs = ScriptLoader.getScript("Scene/" + sceneId + "/scene" + sceneId + ".lua");
|
||||
|
||||
if (cs == null) {
|
||||
Grasscutter.getLogger().warn("No script found for scene " + sceneId);
|
||||
Grasscutter.getLogger().warn("No script found for scene {}", sceneId);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user