Reset log output file after rip

This commit is contained in:
4pr0n 2014-06-11 23:00:08 -07:00
parent 700440d033
commit bcb2e704fb
2 changed files with 7 additions and 1 deletions

View File

@ -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();
}
}
}

View File

@ -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) {