You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2011/12/02 23:51:05 UTC
svn commit: r1209760 -
/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
Author: veithen
Date: Fri Dec 2 22:51:04 2011
New Revision: 1209760
URL: http://svn.apache.org/viewvc?rev=1209760&view=rev
Log:
Enabled runtime changes of log levels.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java?rev=1209760&r1=1209759&r2=1209760&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java Fri Dec 2 22:51:04 2011
@@ -76,7 +76,6 @@ public class OMSourcedElementImpl extend
private boolean isExpanded = false;
private static Log log = LogFactory.getLog(OMSourcedElementImpl.class);
- private static final boolean isDebugEnabled = log.isDebugEnabled();
private static Log forceExpandLog = LogFactory.getLog(OMSourcedElementImpl.class.getName() + ".forceExpand");
@@ -255,7 +254,7 @@ public class OMSourcedElementImpl extend
// isExpanded is always true if dataSource is null.
if (!isExpanded && dataSource != null) {
- if (isDebugEnabled) {
+ if (log.isDebugEnabled()) {
log.debug("forceExpand: expanding element " +
getPrintableName());
if(forceExpandLog.isDebugEnabled()){
@@ -467,7 +466,7 @@ public class OMSourcedElementImpl extend
}
public XMLStreamReader getXMLStreamReader(boolean cache, boolean preserveNamespaceContext) {
- if (isDebugEnabled) {
+ if (log.isDebugEnabled()) {
log.debug("getting XMLStreamReader for " + getPrintableName()
+ " with cache=" + cache);
}
@@ -678,7 +677,7 @@ public class OMSourcedElementImpl extend
}
public void serializeAndConsume(OutputStream output) throws XMLStreamException {
- if (isDebugEnabled) {
+ if (log.isDebugEnabled()) {
log.debug("serialize " + getPrintableName() + " to output stream");
}
OMOutputFormat format = new OMOutputFormat();
@@ -690,7 +689,7 @@ public class OMSourcedElementImpl extend
}
public void serializeAndConsume(Writer writer) throws XMLStreamException {
- if (isDebugEnabled) {
+ if (log.isDebugEnabled()) {
log.debug("serialize " + getPrintableName() + " to writer");
}
if (isExpanded()) {
@@ -703,7 +702,7 @@ public class OMSourcedElementImpl extend
public void serializeAndConsume(OutputStream output, OMOutputFormat format)
throws XMLStreamException {
- if (isDebugEnabled) {
+ if (log.isDebugEnabled()) {
log.debug("serialize formatted " + getPrintableName() +
" to output stream");
}
@@ -716,7 +715,7 @@ public class OMSourcedElementImpl extend
public void serializeAndConsume(Writer writer, OMOutputFormat format)
throws XMLStreamException {
- if (isDebugEnabled) {
+ if (log.isDebugEnabled()) {
log.debug("serialize formatted " + getPrintableName() +
" to writer");
}