Logs: Windows line ending fixes for event log and duplicate message in router log

This commit is contained in:
zzz
2015-12-11 15:06:22 +00:00
parent 32df925fa6
commit 393b593785
3 changed files with 8 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ import net.i2p.data.DataHelper;
*
*/
class LogRecordFormatter {
private final static String NL = System.getProperty("line.separator");
final static String NL = System.getProperty("line.separator");
// arbitrary max length for the classname property (this makes is it lines up nicely)
private final static int MAX_WHERE_LENGTH = 30;
// if we're going to have one for where... be consistent

View File

@@ -147,7 +147,8 @@ abstract class LogWriterBase implements Runnable {
private String dupMessage(int dupCount, LogRecord lastRecord, boolean reverse) {
String arrows = reverse ? (SystemVersion.isAndroid() ? "vvv" : "↓↓↓") : "^^^";
return LogRecordFormatter.getWhen(_manager, lastRecord) + ' ' + arrows + ' ' +
_t(dupCount, "1 similar message omitted", "{0} similar messages omitted") + ' ' + arrows + '\n';
_t(dupCount, "1 similar message omitted", "{0} similar messages omitted") + ' ' + arrows +
LogRecordFormatter.NL;
}
private static final String BUNDLE_NAME = "net.i2p.router.web.messages";