log4j.rootLogger=ERROR, console
# Log level for wamblee.org
-log4j.logger.org.wamblee=DEBUG
+log4j.logger.org.wamblee=INFO
log4j.logger.org.wamblee.usermgt.UserAdministrationImplTest=INFO
log4j.logger.org.wamblee.security.authorization=ERROR
log4j.logger.org.wamblee.cache=INFO
* @see org.wamblee.crawler.Crawler#getPage(java.lang.String)
*/
public Page getPage(String aUrl) throws PageException {
- LOG.info("Getting page: url = '" + aUrl + "'");
+ LOG.debug("Getting page: url = '" + aUrl + "'");
PageRequest request = _config.getRequest(aUrl);
Document content = request.execute(aUrl, _client);
return transformToDom4jDoc(content);
* java.lang.String)
*/
public Page getPage(String aUrl, PageType aType) throws PageException {
- LOG.info("Getting page: url = '" + aUrl + "', type = '" + aType + "'");
+ LOG.debug("Getting page: url = '" + aUrl + "', type = '" + aType + "'");
PageRequest request = _config.getRequest(aType);
Document content = request.execute(aUrl, _client);
return transformToDom4jDoc(content);
* org.wamblee.crawler.kiss.Report)
*/
public void execute(Program aProgram, ProgramActionExecutor aReport) {
- aReport.interestingProgram(_category, aProgram);
+ if (aProgram.isRecordingPossible()) {
+ aReport.interestingProgram(_category, aProgram);
+ }
}
}
.getText().trim();
} catch (PageException e) {
LOG
- .warn("Program details coul dnot be determined for '"
- + action.getName() + "'");
+ .warn("Program details could not be determined for '"
+ + action.getName() + "'", e);
}
}
Program program = new Program(aChannel, action.getName(),
description, keywords, interval, action);
- LOG.debug("Got program " + program);
+ LOG.info("Got program " + program);
programs.add(program);
}
}
* @return Status describing the result of recording.
*/
public RecordingResult record() {
+ LOG.info("Recording " + this);
try {
Action record = _programInfo.execute().getAction(RECORD_ACTION);
if (record == null) {
+ LOG.info(" result: " + RecordingResult.OLDSHOW);
return RecordingResult.OLDSHOW;
}
Page result = record.execute();
- return RecordingResult.valueOf(result.getContent().getText());
+ RecordingResult recordingResult = RecordingResult.valueOf(result.getContent().getText());
+ LOG.info(" result: " + recordingResult);
+ return recordingResult;
} catch (PageException e) {
LOG.warn("Technical problem recording program: '" + this + "'", e);
+ LOG.info(" result: " + RecordingResult.ERROR);
return RecordingResult.ERROR;
}
}