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);
|
RipStatusMessage msg = new RipStatusMessage(STATUS.RIP_COMPLETE, workingDir);
|
||||||
observer.update(this, msg);
|
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();
|
ripper.setup();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
failed = true;
|
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");
|
error("Could not find ripper for given URL");
|
||||||
}
|
}
|
||||||
if (!failed) {
|
if (!failed) {
|
||||||
|
Loading…
Reference in New Issue
Block a user