You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2018/01/05 09:45:05 UTC
[camel] branch master updated: Do not use deprecated api
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new d10b99c Do not use deprecated api
d10b99c is described below
commit d10b99c5d1075debc1a9750a6f75864855ecdc5e
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Jan 5 10:30:10 2018 +0100
Do not use deprecated api
---
.../java/org/apache/camel/component/file/remote/FtpOperations.java | 4 ++--
.../java/org/apache/camel/component/file/remote/SftpOperations.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
index 6a8ecc7..a6c6d33 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
@@ -588,10 +588,10 @@ public class FtpOperations implements RemoteFileOperations<FTPFile> {
log.trace("Client storeFile: {}", targetName);
answer = client.storeFile(targetName, is);
}
- watch.stop();
if (log.isDebugEnabled()) {
+ long time = watch.taken();
log.debug("Took {} ({} millis) to store file: {} and FTP client returned: {}",
- new Object[]{TimeUtils.printDuration(watch.taken()), watch.taken(), targetName, answer});
+ new Object[]{TimeUtils.printDuration(time), time, targetName, answer});
}
// store client reply information after the operation
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
index 50cb753..8604fdf 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
@@ -907,10 +907,10 @@ public class SftpOperations implements RemoteFileOperations<SftpRemoteFile> {
// override is default
channel.put(is, targetName);
}
- watch.stop();
if (LOG.isDebugEnabled()) {
+ long time = watch.taken();
LOG.debug("Took {} ({} millis) to store file: {} and FTP client returned: true",
- new Object[]{TimeUtils.printDuration(watch.taken()), watch.taken(), targetName});
+ new Object[]{TimeUtils.printDuration(time), time, targetName});
}
// after storing file, we may set chmod on the file
--
To stop receiving notification emails like this one, please contact
['"commits@camel.apache.org" <co...@camel.apache.org>'].