directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Karasulu" <akaras...@apache.org>
Subject [Logging] Is this required if we use substitutions
Date Fri, 06 Jun 2008 04:40:42 GMT
Emmanuel,

I see in some places you protect calls to LOG.debug() for example with a
IS_DEBUG conditional like so:

        if ( IS_DEBUG )
        {
            LOG.debug( "Adding the entry {} for DN = '{}'",
opContext.getEntry(), opContext.getDn().getUpName() );
        }

If the {} based substitution is used, then does this not protect us from
additional String concatenation?  Is the above more efficient than:

         LOG.debug( "Adding the entry {} for DN = '{}'",
opContext.getEntry(), opContext.getDn().getUpName() );

Thanks,
Alex

Mime
View raw message