camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1436945 - in /camel/branches/camel-2.10.x: ./ components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConsumer.java components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java
Date Tue, 22 Jan 2013 14:21:28 GMT
Author: davsclaus
Date: Tue Jan 22 14:21:28 2013
New Revision: 1436945

URL: http://svn.apache.org/viewvc?rev=1436945&view=rev
Log:
Added a bit more TRACE logging to camel-ftp

Modified:
    camel/branches/camel-2.10.x/   (props changed)
    camel/branches/camel-2.10.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConsumer.java
    camel/branches/camel-2.10.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
  Merged /camel/trunk:r1436944

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: camel/branches/camel-2.10.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConsumer.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConsumer.java?rev=1436945&r1=1436944&r2=1436945&view=diff
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConsumer.java
(original)
+++ camel/branches/camel-2.10.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConsumer.java
Tue Jan 22 14:21:28 2013
@@ -101,6 +101,10 @@ public class FtpConsumer extends RemoteF
 
         for (FTPFile file : files) {
 
+            if (log.isTraceEnabled()) {
+                log.trace("FtpFile[name={}, dir={}, file={}]", new Object[]{file.getName(),
file.isDirectory(), file.isFile()});
+            }
+
             // check if we can continue polling in files
             if (!canPollMoreFiles(fileList)) {
                 return false;

Modified: camel/branches/camel-2.10.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java?rev=1436945&r1=1436944&r2=1436945&view=diff
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java
(original)
+++ camel/branches/camel-2.10.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java
Tue Jan 22 14:21:28 2013
@@ -98,6 +98,10 @@ public class SftpConsumer extends Remote
 
         for (ChannelSftp.LsEntry file : files) {
 
+            if (log.isTraceEnabled()) {
+                log.trace("SftpFile[fileName={}, longName={}, dir={}]", new Object[]{file.getFilename(),
file.getLongname(), file.getAttrs().isDir()});
+            }
+
             // check if we can continue polling in files
             if (!canPollMoreFiles(fileList)) {
                 return false;



Mime
View raw message