better reporting

This commit is contained in:
gnembon committed 2021-05-05 01:23:17 -03:00
1 parent 8d97ab26a9
commit 1633cca07a
2 files changed
+3 -11

No files matched your search

+2 -2
View File
@@ -66,7 +66,7 @@ public class Expression
public String getModuleName()
{
return module == null?null:module.getName();
return module == null?"system chat":module.getName();
}
public void asATextSource()
@@ -1072,7 +1072,7 @@ public class Expression
if (!CarpetSettings.scriptsOptimization)
return root.op;
CarpetScriptServer.LOG.info("Input code size: " + treeSize(root) + " nodes, " + treeDepth(root) + " deep");
CarpetScriptServer.LOG.info("Input code size for "+getModuleName()+": " + treeSize(root) + " nodes, " + treeDepth(root) + " deep");
boolean changed = true;
while(changed) {