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-web/archiva-web-common | |
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-web/archiva-web-common')
6 files changed, 7 insertions, 8 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java index a16388301..d230c7ba7 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java @@ -263,7 +263,7 @@ public class RssFeedServlet } catch ( DecoderException ie ) { - log.warn( "Error decoding username and password.", ie.getMessage() ); + log.warn( "Error decoding username and password: {}", ie.getMessage() ); } if ( usernamePassword == null || usernamePassword.trim().equals( "" ) ) diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaLockedAdminEnvironmentCheck.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaLockedAdminEnvironmentCheck.java index db451617c..a6090cec1 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaLockedAdminEnvironmentCheck.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaLockedAdminEnvironmentCheck.java @@ -134,7 +134,7 @@ public class ArchivaLockedAdminEnvironmentCheck } catch ( RbacManagerException e ) { - log.warn( "Exception when checking for locked admin user: " + e.getMessage(), e ); + log.warn( "Exception when checking for locked admin user: {}", e.getMessage(), e ); } checked = true; diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/Banner.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/Banner.java index 3547ee308..e36b7bda0 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/Banner.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/Banner.java @@ -224,6 +224,6 @@ public class Banner public static void display( String version ) { String banner = getBanner( version ); - LoggerFactory.getLogger( Banner.class ).info( StringUtils.repeat( "_", 25 ) + eol + banner ); + LoggerFactory.getLogger( Banner.class ).info( "{} {}, {}" , StringUtils.repeat( "_", 25 ), eol, banner ); } } diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/SecuritySynchronization.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/SecuritySynchronization.java index 592b96896..3f4c20909 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/SecuritySynchronization.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/SecuritySynchronization.java @@ -188,7 +188,7 @@ public class SecuritySynchronization EnvironmentCheck check = entry.getValue(); List<String> v = new ArrayList<String>(); check.validateEnvironment( v ); - log.info( "Environment Check: " + entry.getKey() + " -> " + v.size() + " violation(s)" ); + log.info( "Environment Check: {} -> {} violation(s)", entry.getKey(), v.size() ); for ( String s : v ) { violations.add( "[" + entry.getKey() + "] " + s ); @@ -247,8 +247,7 @@ public class SecuritySynchronization } catch ( RbacManagerException e ) { - log.warn( "Unable to add role [" + ArchivaRoleConstants.toRepositoryObserverRoleName( repoId ) + "] to " - + principal + " user.", e ); + log.warn( "Unable to add role [{}] to {} user.", ArchivaRoleConstants.toRepositoryObserverRoleName( repoId ), principal, e ); } } } diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/AbstractDownloadTest.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/AbstractDownloadTest.java index 367bc070c..881377931 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/AbstractDownloadTest.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/AbstractDownloadTest.java @@ -128,7 +128,7 @@ public abstract class AbstractDownloadTest 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 ); User user = new User(); user.setEmail( "toto@toto.fr" ); diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadArtifactsTest.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadArtifactsTest.java index aa1be1a3c..c0d491d69 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadArtifactsTest.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadArtifactsTest.java @@ -197,7 +197,7 @@ public class DownloadArtifactsTest } catch ( Throwable e ) { - log.info( "fail to get zipEntries " + e.getMessage(), e ); + log.info( "fail to get zipEntries {}", e.getMessage(), e ); } return Collections.emptyList(); } |