You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Russell Butek <bu...@us.ibm.com> on 2001/07/31 17:31:41 UTC

Debug.setDebugLevel question

Is Debug.setDebugLevel (...) meant to be publicly available?  The address
book sample has:

        Debug.setDebugLevel( opts.isFlagSet( 'd' ) );

which implies that it IS meant to be publicly available.  This line sets
the debug level to 1.  HOWEVER, not long after, in AxisEngine.init, the
following lines are executed:

        String propVal = props.getProperty(PROP_DEBUG_LEVEL, "0");
        Debug.setDebugLevel(Integer.parseInt(propVal));

which gets the debug level from axis.properties and I've lost what was set
in the sample.

It seems to me that, if Debug.setDebugLevel is meant to be public, then the
level set through Debug.setDebugLevel should override the level acquired
from axis.properties.  If it is NOT meant to be public, it should be
removed from any samples.

Russell Butek
butek@us.ibm.com