[ 
https://issues.apache.org/jira/browse/CAMEL-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16316030#comment-16316030
 ] 

Claus Ibsen commented on CAMEL-12127:
-------------------------------------

We now have information of the total file size, so we log also the percent in 
the progress, and to avoid to frequent logging we only log every 5th second 
interval (by default). But all that is configurable.

{code}
2018-01-08 11:19:38,560 [://localhost:21] INFO  FtpClientActivityListener      
- Downloading from host: ftp://bob@localhost:21 file: ideaIU-2017.3.2.dmg 
starting  (size: 594.3 MB)
2018-01-08 11:19:39,561 [://localhost:21] INFO  FtpClientActivityListener      
- Downloading from host: ftp://bob@localhost:21 file: ideaIU-2017.3.2.dmg chunk 
(32635/129783772 bytes) (progress: 20.8%)
2018-01-08 11:19:40,562 [://localhost:21] INFO  FtpClientActivityListener      
- Downloading from host: ftp://bob@localhost:21 file: ideaIU-2017.3.2.dmg chunk 
(32621/267433797 bytes) (progress: 42.9%)
2018-01-08 11:19:41,563 [://localhost:21] INFO  FtpClientActivityListener      
- Downloading from host: ftp://bob@localhost:21 file: ideaIU-2017.3.2.dmg chunk 
(32651/384095710 bytes) (progress: 61.6%)
2018-01-08 11:19:43,141 [://localhost:21] INFO  FtpClientActivityListener      
- Downloading from host: ftp://bob@localhost:21 file: ideaIU-2017.3.2.dmg chunk 
(32654/535225797 bytes) (progress: 85.9%)
2018-01-08 11:19:44,148 [://localhost:21] INFO  FtpClientActivityListener      
- Downloading from host: ftp://bob@localhost:21 file: ideaIU-2017.3.2.dmg 
completed (size: 594.3 MB) (took: 5.588 seconds)
{code}

> camel-ftp - Add option to turn on logging of transfer activity
> --------------------------------------------------------------
>
>                 Key: CAMEL-12127
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12127
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-ftp
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.21.0
>
>
> So you can see how far you have downloaded or uploaded files with the ftp 
> component. This does not work with the sftp (ssh ftp).
> {code}
> 2018-01-06 15:08:53,198 [//src/main/data] INFO  FtpOperations                 
>  - Uploading: bar.xml (chunk: 873, total chunk: 873 bytes)
> 2018-01-06 15:08:53,211 [//src/main/data] INFO  FtpOperations                 
>  - Uploading: foo.xml (chunk: 873, total chunk: 873 bytes)
> 2018-01-06 15:08:53,708 [1000/tmp2/camel] INFO  FtpOperations                 
>  - Downloading: bar.xml (chunk: 873, total chunk: 873 bytes)
> 2018-01-06 15:08:53,713 [1000/tmp2/camel] INFO  FtpOperations                 
>  - Downloading: foo.xml (chunk: 1, total chunk: 1 bytes)
> 2018-01-06 15:08:53,713 [1000/tmp2/camel] INFO  FtpOperations                 
>  - Downloading: foo.xml (chunk: 872, total chunk: 873 bytes)
> {code}
> We can also not see the total size of the file, as the FTP client 
> implementation does not provide that detail.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to