Skip to content

Commit

Permalink
extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Jan 14, 2014
1 parent c769296 commit 6102298
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/jcabi/xml/XSDDocument.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

import com.jcabi.aspects.Immutable;
import com.jcabi.aspects.Loggable;
import com.jcabi.log.Logger;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
Expand Down Expand Up @@ -198,6 +199,10 @@ public void fatalError(final SAXParseException error) {
} catch (IOException ex) {
throw new IllegalStateException(ex);
}
Logger.debug(
this, "%s detected %d error(s)",
schema.getClass().getName(), errors.size()
);
return errors;
}

Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/jcabi/xml/XSLDocument.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

import com.jcabi.aspects.Immutable;
import com.jcabi.aspects.Loggable;
import com.jcabi.log.Logger;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
Expand Down Expand Up @@ -195,6 +196,10 @@ public XML transform(@NotNull(message = "XML can't be NULL")
} catch (TransformerException ex) {
throw new IllegalStateException(ex);
}
Logger.debug(
this, "%s transformed XML",
trans.getClass().getName()
);
return new XMLDocument(target);
}

Expand Down

0 comments on commit 6102298

Please sign in to comment.