From: Olivier Lamy Date: Fri, 26 Apr 2013 13:08:26 +0000 (+0000) Subject: log more details when ldap connection fail X-Git-Tag: archiva-1.4-M4~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=65706a4e445af3be4654815deb271ab8092a7868;p=archiva.git log more details when ldap connection fail git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1476178 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java index 6bd4dd280..fb7751451 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java @@ -266,7 +266,7 @@ public class DefaultRedbackRuntimeConfigurationService } catch ( LdapException e ) { - log.warn( "fail to get LdapConnection: {}", e.getMessage() ); + log.warn( "fail to get LdapConnection: {}", e.getMessage(), e ); throw new ArchivaRestServiceException( e.getMessage(), e ); } finally @@ -312,12 +312,12 @@ public class DefaultRedbackRuntimeConfigurationService } catch ( InvalidNameException e ) { - log.warn( "fail to get LdapConnection: {}", e.getMessage() ); + log.warn( "fail to get LdapConnection: {}", e.getMessage(), e); throw new ArchivaRestServiceException( e.getMessage(), e ); } catch ( LdapException e ) { - log.warn( "fail to get LdapConnection: {}", e.getMessage() ); + log.warn( "fail to get LdapConnection: {}", e.getMessage(), e); throw new ArchivaRestServiceException( e.getMessage(), e ); } finally diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml index 675b38605..494405771 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml @@ -31,7 +31,7 @@ - %d [%t] %-5p %c %x - %m%n @@ -39,7 +39,7 @@ - +