Sorry, I was in a hurry when I fixed this bug. I'll update the said
code to use isDebugLogEnabled()  instead :)

Thanks,
Deng

On Wed, Oct 27, 2010 at 1:34 PM, Brett Porter <[email protected]> wrote:
>
> On 15/10/2010, at 1:58 PM, [email protected] wrote:
>
>> Modified: 
>> archiva/trunk/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/AdministrationServiceImpl.java
>> URL: 
>> http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/AdministrationServiceImpl.java?rev=1022813&r1=1022812&r2=1022813&view=diff
>> ==============================================================================
>> --- 
>> archiva/trunk/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/AdministrationServiceImpl.java
>>  (original)
>> +++ 
>> archiva/trunk/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/AdministrationServiceImpl.java
>>  Fri Oct 15 02:58:49 2010
>> @@ -475,6 +475,8 @@ public class AdministrationServiceImpl
>>         Configuration config = archivaConfiguration.getConfiguration();
>>         repoConfig = config.findManagedRepositoryById( repoId );
>>
>> +        log.debug( "Retrieved repository configuration for repo '" + repoId 
>> + "'" );
>> +
>>         if ( repoConfig != null )
>>         {
>>             stagingConfig = config.findManagedRepositoryById( stagingId );
>> @@ -485,32 +487,62 @@ public class AdministrationServiceImpl
>>
>>                 if ( repoConfig.isReleases() && !repoConfig.isSnapshots() )
>>                 {
>> +                    log.info( "Repository to be merged contains releases 
>> only.." );
>>                     if ( skipConflicts )
>>                     {
>>                         List<ArtifactMetadata> conflicts =
>> -                            repositoryMerger.getConflictingArtifacts( 
>> stagingId, stagingId );
>> +                            repositoryMerger.getConflictingArtifacts( 
>> repoId, stagingId );
>> +
>> +                        log.debug( "Artifacts in conflict.." );
>> +                        for( ArtifactMetadata metadata : conflicts )
>> +                        {
>> +                            log.debug( metadata.getNamespace() + ":" + 
>> metadata.getProject() + ":" +
>> +                                metadata.getProjectVersion() );
>> +                        }
>
> you can wrap this in an isDebugLogEnabled() so it doesn't have to loop 
> aimlessly when not debugging (same thing further down in the class).
>
> - Brett
>
> --
> Brett Porter
> [email protected]
> http://brettporter.wordpress.com/
>
>

Reply via email to