Additional DEBUG output: UPLOAD_START


#1

Would be nice to have an indication of when Duplicacy is starting a chunk upload, as well as when it has finished or skipped an upload. Just as a DEBUG output, for when Duplicacy seems to have stopped processing.


#2

Do you mean you need more than what you get with the -stats option and the -verbose/-debug options?


#3

Yes, with the -debug option.

Currently we see:

TRACE PACK_START Packing xxxxxxxx.sql.gz
DEBUG CHUNK_CACHE Skipped chunk xxxxxxx in cache
INFO UPLOAD_PROGRESS Skipped chunk 2 size 8853372, 8.44MB/s 00:00:14 6.7%
DEBUG CHUNK_UPLOAD Chunk xxxxxxx has been uploaded
INFO UPLOAD_PROGRESS Uploaded chunk 1 size 3872164, 565KB/s 00:02:35 32.3%

in other words, there is only output after an upload has been completed or skipped.

With my network problems, the output stopped after a “PACK_START” line, making it look like Duplicacy was stuck on “packing”.

Would be useful to have the additional lines like:

TRACE PACK_START Packing xxxxxxxx.sql.gz
DEBUG CHUNK_UPLOAD_START Uploading chunk xxxxxx
DEBUG CHUNK_CACHE Skipped chunk xxxxxxx in cache
INFO UPLOAD_PROGRESS Skipped chunk 2 size 8853372, 8.44MB/s 00:00:14 6.7%
DEBUG CHUNK_UPLOAD_START Uploading chunk xxxxxx
DEBUG CHUNK_UPLOAD Chunk xxxxxxx has been uploaded
INFO UPLOAD_PROGRESS Uploaded chunk 1 size 3872164, 565KB/s 00:02:35 32.3%

So that if network is slow the last line output would be the new “DEBUG CHUNK_UPLOAD_START Uploading chunk xxxxxx” one.

Only needed as a DEBUG output, as usually network blockage isn’t a problem.