1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-22 01:17:38 +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
2 changed files with 6 additions and 2 deletions

View File

@@ -83,7 +83,11 @@ public class CobaltLuaMachine implements ILuaMachine {
}
});
})
.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();