I realize this will cause logs to become more noisy and i'm not sure if we really can guarantee the result without slowing rclone down but I ran into a logging issue today.
I made a mistake and began deleting some files (no, a confirmation dialog wouldn't have helped. ) . I was running a DEBUG and producing a logfile. I immediately saw my error and hit ctrl-c. I then went into my logfile, identified what happened and restored from google trash the one file it showed as deleted. That log, however, was not complete since it writes to the log after the activity is complete and i hit 'ctrl-c'. I was running with a large number of transfers so there could have been a large number of outstanding 'deletes' that weren't captured. In my case it was only 6. I was able to determine the missing files by comparing to my backup to see what damage was done. I then confirmed it in google drive with the delete date activity information.
Do we think it is worthwhile to have the log written to before threads delete the files or for that matter before any 'activity'. It would have made it just a bit easier to know what had happened. Someone without a backup and with a massive amount of files in the trash might not have known about the other files.
Just a thought. In my case I have backups but I might have walked away after restoring just that one file (and lost 5 others).
I really hate to make the logs even more verbose. But figured i'd pose the question.
If nothing else, we just acknowledge it as an issue.