|
|
|
@ -101,7 +101,10 @@ public class HelpController { |
|
|
|
|
List<String> lines = new ArrayList<>(LOG_LINES_TO_SHOW); |
|
|
|
|
ReversedLinesFileReader reader = new ReversedLinesFileReader(logFile, Charset.defaultCharset()); |
|
|
|
|
String current; |
|
|
|
|
while((current = reader.readLine()) != null && lines.size() < LOG_LINES_TO_SHOW) { |
|
|
|
|
while((current = reader.readLine()) != null) { |
|
|
|
|
if (lines.size() >= LOG_LINES_TO_SHOW) { |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
lines.add(0, current); |
|
|
|
|
} |
|
|
|
|
return lines; |
|
|
|
|