Reset log output file after rip
This commit is contained in:
parent
700440d033
commit
bcb2e704fb
@ -211,6 +211,12 @@ public abstract class AbstractRipper
|
||||
|
||||
RipStatusMessage msg = new RipStatusMessage(STATUS.RIP_COMPLETE, workingDir);
|
||||
observer.update(this, msg);
|
||||
Logger rootLogger = Logger.getRootLogger();
|
||||
FileAppender fa = (FileAppender) rootLogger.getAppender("FILE");
|
||||
if (fa != null) {
|
||||
fa.setFile("ripme.log");
|
||||
fa.activateOptions();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -741,7 +741,7 @@ public class MainWindow implements Runnable, RipStatusHandler {
|
||||
ripper.setup();
|
||||
} catch (Exception e) {
|
||||
failed = true;
|
||||
logger.error("Could not find ripper for URL " + url, e);
|
||||
logger.error("Could not find ripper for URL " + url);
|
||||
error("Could not find ripper for given URL");
|
||||
}
|
||||
if (!failed) {
|
||||
|
Loading…
Reference in New Issue
Block a user