mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 02:12:54 +00:00
Logs: Windows line ending fixes for event log and duplicate message in router log
This commit is contained in:
1 parent
32df925fa6
commit
393b593785
3 files changed
+8
-4
No files matched your search
@@ -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