mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-09 07:24:41 +00:00
Improve log display
* JobResource.java
form proper alerts-rev-tail link
for any file ending ".log", use rev-tail-paged view
This commit is contained in:
1 parent
81a658daa3
commit
d4eabb9631
1 file changed
+6
-2
@@ -230,7 +230,7 @@ public class JobResource extends Resource {
|
||||
pw,
|
||||
cj.getCrawlController().getLoggerModule().getAlertsLogPath().getFile(),
|
||||
"tail alert log...",
|
||||
"?format=paged&pos=-1&lines=-128");
|
||||
"format=paged&pos=-1&lines=-128");
|
||||
}
|
||||
|
||||
pw.println("<br/><b>Rates</b><br/> ");
|
||||
@@ -303,7 +303,11 @@ public class JobResource extends Resource {
|
||||
pw.println("<dt>"+cppp+": "+cp.getName()+"</dt>");
|
||||
pw.println("<dd>");
|
||||
if(!StringUtils.isEmpty(cp.getPath())) {
|
||||
printLinkedFile(pw, cp.getFile());
|
||||
printLinkedFile(
|
||||
pw,
|
||||
cp.getFile(),
|
||||
cp.getFile().toString(),
|
||||
cp.getPath().endsWith(".log")?"format=paged&pos=-1&lines=-128&reverse=y":null);
|
||||
} else {
|
||||
pw.println("<i>unset</i>");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user