提交 18cb1b4a authored 作者: Thomas Mueller's avatar Thomas Mueller

Support logging

上级 5ef00169
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
package org.h2.test.store; package org.h2.test.store;
import java.text.MessageFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.Random; import java.util.Random;
...@@ -20,6 +21,7 @@ import org.h2.test.TestBase; ...@@ -20,6 +21,7 @@ import org.h2.test.TestBase;
*/ */
public class TestRandomMapOps extends TestBase { public class TestRandomMapOps extends TestBase {
private static final boolean LOG = false;
private String fileName; private String fileName;
private int seed; private int seed;
private int op; private int op;
...@@ -182,9 +184,11 @@ public class TestRandomMapOps extends TestBase { ...@@ -182,9 +184,11 @@ public class TestRandomMapOps extends TestBase {
* @param msg the message * @param msg the message
*/ */
private static void log(int op, int k, byte[] v, String msg) { private static void log(int op, int k, byte[] v, String msg) {
// msg = MessageFormat.format(msg, k, if (LOG) {
// v == null ? null : "new byte[" + v.length + "]"); msg = MessageFormat.format(msg, k,
// System.out.println(msg + "; // op " + op); v == null ? null : "new byte[" + v.length + "]");
System.out.println(msg + "; // op " + op);
}
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论