From 65706a4e445af3be4654815deb271ab8092a7868 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 26 Apr 2013 13:08:26 +0000 Subject: [PATCH] log more details when ldap connection fail git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1476178 13f79535-47bb-0310-9956-ffa450edef68 --- .../services/DefaultRedbackRuntimeConfigurationService.java | 6 +++--- .../archiva-webapp/src/test/tomcat/log4j2-test.xml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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 @@ - + -- 2.39.5