]> source.dussan.org Git - archiva.git/commitdiff
log more details when ldap connection fail
authorOlivier Lamy <olamy@apache.org>
Fri, 26 Apr 2013 13:08:26 +0000 (13:08 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 26 Apr 2013 13:08:26 +0000 (13:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1476178 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java
archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml

index 6bd4dd280234e55b44a0ccab3cac429925c4d3bb..fb775145127c97acd18a7f3e73d688dc8cc293db 100644 (file)
@@ -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
index 675b386055de18ea89cabca2696e038da7b761d2..494405771cb7a8ebc8fca4e31c0c17c9094b3038 100644 (file)
@@ -31,7 +31,7 @@
       <PatternLayout pattern="%highlight{%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n}" />
     </Console>
 
-    <FastFile name="rolling" fileName="${logsDirectory}/archiva.log"
+    <FastRollingFileAppender name="rolling" fileName="${logsDirectory}/archiva.log"
                 filePattern="${logsDirectory}/archiva-%d{MM-dd-yyyy}.log" immediateFlush="false" append="true">
       <PatternLayout>
         <pattern>%d [%t] %-5p %c %x - %m%n</pattern>
@@ -39,7 +39,7 @@
       <Policies>
         <TimeBasedTriggeringPolicy />
       </Policies>
-    </FastFile>
+    </FastRollingFileAppender>
 
   </appenders>
   <loggers>