Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option --log-after to log after moving file into place #442

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amir73il
Copy link

This mode is useful when a process is monitoring the log for post-processing of transferred files.

With --log-after in local mode, both sender and receiver log to the same log file, so it require --log-file with absolute path.

We add %o to the default log format, so it will be easy to tell the logs of the sender from the logs of the receiver:

2023/02/14 14:40:25 [559755] building file list
2023/02/14 14:40:25 [559755] send >f+++++++++ foo
2023/02/14 14:40:25 [559757] recv >f+++++++++ foo
2023/02/14 14:40:25 [559755] sent 111 bytes received 35 bytes 292.00 bytes/sec 2023/02/14 14:40:25 [559755] total size is 4 speedup is 0.03

This mode is useful when a process is monitoring the log for
post-processing of transferred files.

With --log-after in local mode, both sender and receiver log to
the same log file, so it require --log-file with absolute path.

We add %o to the default log format, so it will be easy to tell
the logs of the sender from the logs of the receiver:

2023/02/14 14:40:25 [559755] building file list
2023/02/14 14:40:25 [559755] send >f+++++++++ foo
2023/02/14 14:40:25 [559757] recv >f+++++++++ foo
2023/02/14 14:40:25 [559755] sent 111 bytes  received 35 bytes  292.00 bytes/sec
2023/02/14 14:40:25 [559755] total size is 4  speedup is 0.03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant