mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-23 06:05:46 +00:00
Checkpoint cleanup
* Checkpoint.java
calculate shortName correctly
* CrawlerLoggerModule.java
use full checkpoint-name for log-rotation-suffix
This commit is contained in:
@@ -86,7 +86,7 @@ public class Checkpoint implements InitializingBean {
|
||||
|
||||
public void afterPropertiesSet() {
|
||||
name = checkpointDir.getFile().getName();
|
||||
shortName = name.substring(name.indexOf("-"));
|
||||
shortName = name.substring(0, name.indexOf("-"));
|
||||
}
|
||||
|
||||
public void setSuccess(boolean b) {
|
||||
|
||||
@@ -352,7 +352,7 @@ public class CrawlerLoggerModule
|
||||
*/
|
||||
public void doCheckpoint(Checkpoint checkpointInProgress) throws IOException {
|
||||
// Rotate off crawler logs.
|
||||
rotateLogFiles("." + checkpointInProgress.getShortName());
|
||||
rotateLogFiles("." + checkpointInProgress.getName());
|
||||
}
|
||||
|
||||
public void finishCheckpoint(Checkpoint checkpointInProgress) {}
|
||||
|
||||
Reference in New Issue
Block a user