1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-26 07:03:22 +00:00

Bump Cobalt for even more verbose VM logging

See #1307
This commit is contained in:
Jonathan Coates 2023-01-25 18:47:27 +00:00
parent 1554c7b397
commit e076818b29
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
2 changed files with 6 additions and 2 deletions

View File

@ -14,7 +14,7 @@ parchmentMc = "1.19.2"
asm = "9.3"
autoService = "1.0.1"
checkerFramework = "3.12.0"
cobalt = "0.5.10"
cobalt = "0.5.11"
fastutil = "8.5.9"
guava = "31.1-jre"
jetbrainsAnnotations = "23.0.0"

View File

@ -83,7 +83,11 @@ public CobaltLuaMachine(MachineEnvironment environment) {
}
});
})
.errorReporter(e -> LOG.error(Logging.VM_ERROR, "Error occurred in the Lua runtime. Computer will continue to execute.", e))
.errorReporter((e, msg) -> {
if (LOG.isErrorEnabled(Logging.VM_ERROR)) {
LOG.error(Logging.VM_ERROR, "Error occurred in the Lua runtime. Computer will continue to execute:\n{}", msg.get(), e);
}
})
.build();
globals = new LuaTable();