forked from I2P_Developers/i2p.i2p
Logs: Windows line ending fixes for event log and duplicate message in router log
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user