mirror of https://github.com/apache/lucene.git
Revert r1685431: LUCENE-6564: Add milliseconds to timestamp in IW output for tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1685461 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0b0189f77c
commit
b1f1f5df0b
|
@ -148,9 +148,6 @@ Build
|
|||
* LUCENE-6518: Don't report false thread leaks from IBM J9
|
||||
ClassCache Reaper in test framework. (Dawid Weiss)
|
||||
|
||||
* LUCENE-6564: Add milliseconds to timestamp in InfoStream output for tests
|
||||
(Ramkumar Aiyengar)
|
||||
|
||||
======================= Lucene 5.2.1 =======================
|
||||
|
||||
Bug Fixes
|
||||
|
|
|
@ -36,7 +36,7 @@ public class PrintStreamInfoStream extends InfoStream {
|
|||
private static final AtomicInteger MESSAGE_ID = new AtomicInteger();
|
||||
protected final int messageID;
|
||||
|
||||
protected static final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", Locale.ROOT);
|
||||
private static final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", Locale.ROOT);
|
||||
|
||||
protected final PrintStream stream;
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ import java.util.Date;
|
|||
import java.util.HashSet;
|
||||
import java.util.Locale;
|
||||
import java.util.Random;
|
||||
import java.util.Set;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import org.apache.lucene.codecs.Codec;
|
||||
|
@ -98,7 +99,7 @@ final class TestRuleSetupAndRestoreClassEnv extends AbstractBeforeAfterRule {
|
|||
} else {
|
||||
name = Thread.currentThread().getName();
|
||||
}
|
||||
stream.println(component + " " + messageID + " [" + dateFormat.format(new Date()) + "; " + name + "]: " + message);
|
||||
stream.println(component + " " + messageID + " [" + new Date() + "; " + name + "]: " + message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue