Skip to content

Commit

Permalink
completed #66 - now all log messages should have appropriate level
Browse files Browse the repository at this point in the history
  • Loading branch information
gernotstarke committed Dec 26, 2014
1 parent 4a797d9 commit e994d62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class AllChecksRunner {
this.checkingResultsDir = checkingResultsDir
this.checkExternalResources = checkExternalResources

logger.info("AlLChecksRunner created")
logger.debug("AlLChecksRunner created")
}

/**
Expand All @@ -96,7 +96,7 @@ class AllChecksRunner {
*/
public PerRunResults performAllChecks() {

logger.info "entered performAllChecks"
logger.debug "entered performAllChecks"

filesToCheck.each { file ->

Expand Down Expand Up @@ -177,7 +177,6 @@ class AllChecksRunner {
)

return missingImagesChecker.performCheck()
//logger.info imageCheckingResults.toString()
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class MissingImageFilesChecker extends Checker {
//get list of all image-tags "<img..." in html file
images = pageToCheck.getAllImageTags()

logger.debug("images to check: ${images}")

checkAllImages()

return checkingResults
Expand All @@ -51,9 +53,6 @@ class MissingImageFilesChecker extends Checker {
private void checkSingleLocalImage(HtmlElement image) {
String relativePathToCurrentImage = image.getImageSrcAttribute()

//logger.info( "image: " + image)
//logger.info( "relPathToCurImage: \n$relativePathToCurrentImage")

// check only "local" image references
// (that is, NO remote URL)
if (!URLUtil.isRemoteURL(relativePathToCurrentImage)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MissingImageFilesCheckerTest extends GroovyTestCase {

checkingResults = new SingleCheckResults()

logger.info( "imagesDir: $imagesDir")
logger.debug( "imagesDir: $imagesDir")
}


Expand Down

0 comments on commit e994d62

Please sign in to comment.