diff options
author | Olivier Lamy <olamy@apache.org> | 2013-12-02 04:07:17 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-12-02 04:07:17 +0000 |
commit | 60b382e36e53e37d966fe79db62618fd34d9c5e1 (patch) | |
tree | e3c3c6c68aa325863ab2a281332dfe06227a4fd0 /archiva-modules/archiva-scheduler/archiva-scheduler-indexing | |
parent | 1fcefd58469a03a757908e42b0da5bc39dbcf4c9 (diff) | |
download | archiva-60b382e36e53e37d966fe79db62618fd34d9c5e1.tar.gz archiva-60b382e36e53e37d966fe79db62618fd34d9c5e1.zip |
fix logging warn level
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1546890 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-scheduler/archiva-scheduler-indexing')
3 files changed, 4 insertions, 4 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DefaultDownloadRemoteIndexScheduler.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DefaultDownloadRemoteIndexScheduler.java index b4c2a633d..05f51d57a 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DefaultDownloadRemoteIndexScheduler.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DefaultDownloadRemoteIndexScheduler.java @@ -205,7 +205,7 @@ public class DefaultDownloadRemoteIndexScheduler } catch ( IllegalArgumentException e ) { - log.warn( "Unable to schedule remote index download: " + e.getLocalizedMessage() ); + log.warn( "Unable to schedule remote index download: {}", e.getLocalizedMessage() ); } if ( remoteRepository.isDownloadRemoteIndexOnStartup() ) diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java index d01629b43..c87617880 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java @@ -229,7 +229,7 @@ public class DownloadRemoteIndexTask deleteDirectoryQuiet( tempIndexDirectory ); this.runningRemoteDownloadIds.remove( this.remoteRepository.getId() ); } - log.info( "end download remote index for remote repository " + this.remoteRepository.getId() ); + log.info( "end download remote index for remote repository {}", this.remoteRepository.getId() ); } private void deleteDirectoryQuiet( File f ) diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTaskTest.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTaskTest.java index f5956e542..104fa522f 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTaskTest.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTaskTest.java @@ -88,7 +88,7 @@ public class DownloadRemoteIndexTaskTest this.server.start(); Connector connector = this.server.getConnectors()[0]; this.port = connector.getLocalPort(); - log.info( "start server on port " + this.port ); + log.info( "start server on port {}", this.port ); nexusIndexer = plexusSisuBridge.lookup( NexusIndexer.class ); } @@ -140,7 +140,7 @@ public class DownloadRemoteIndexTaskTest FlatSearchResponse response = nexusIndexer.searchFlat( rq ); - log.info( "returned hit count:" + response.getReturnedHitsCount() ); + log.info( "returned hit count:{}", response.getReturnedHitsCount() ); assertEquals( 8, response.getReturnedHitsCount() ); } |