From aaebb5d534e722c8e188848cce37683915ae5a38 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 1 Jun 2011 10:38:27 +0000 Subject: [PATCH] optimize use of debug git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1130091 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/consumers/core/MetadataUpdaterConsumer.java | 8 ++++---- .../consumers/core/repository/DaysOldRepositoryPurge.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/MetadataUpdaterConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/MetadataUpdaterConsumer.java index fb4891e53..f4dd2c9f4 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/MetadataUpdaterConsumer.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/MetadataUpdaterConsumer.java @@ -217,12 +217,12 @@ public class MetadataUpdaterConsumer if ( projectMetadata.exists() && ( projectMetadata.lastModified() >= this.scanStartTimestamp ) ) { // This metadata is up to date. skip it. - log.debug( "Skipping uptodate metadata: " + this.metadataTools.toPath( projectRef ) ); + log.debug( "Skipping uptodate metadata: {}", this.metadataTools.toPath( projectRef ) ); return; } metadataTools.updateMetadata( this.repository, projectRef ); - log.debug( "Updated metadata: " + this.metadataTools.toPath( projectRef ) ); + log.debug( "Updated metadata: {}", this.metadataTools.toPath( projectRef ) ); } catch ( LayoutException e ) { @@ -263,12 +263,12 @@ public class MetadataUpdaterConsumer if ( projectMetadata.exists() && ( projectMetadata.lastModified() >= this.scanStartTimestamp ) ) { // This metadata is up to date. skip it. - log.debug( "Skipping uptodate metadata: " + this.metadataTools.toPath( versionRef ) ); + log.debug( "Skipping uptodate metadata: {}", this.metadataTools.toPath( versionRef ) ); return; } metadataTools.updateMetadata( this.repository, versionRef ); - log.debug( "Updated metadata: " + this.metadataTools.toPath( versionRef ) ); + log.debug( "Updated metadata: {}", this.metadataTools.toPath( versionRef ) ); } catch ( LayoutException e ) { diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/repository/DaysOldRepositoryPurge.java b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/repository/DaysOldRepositoryPurge.java index 3c8c65708..3930589e0 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/repository/DaysOldRepositoryPurge.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/repository/DaysOldRepositoryPurge.java @@ -137,7 +137,7 @@ public class DaysOldRepositoryPurge } catch ( LayoutException e ) { - log.debug( "Not processing file that is not an artifact: " + e.getMessage() ); + log.debug( "Not processing file that is not an artifact: {}", e.getMessage() ); } }