Commands that include both –log-file=<path> and --verbose or -v or -vv fail without an error message.
But, ah: one version of a command - not the one I list below - included the following in its output: ‘CRITICAL: Can't set -v and --log-level’. But: (1) does the documentation say that somewhere? (2) How come the command that I do list below does not give that output?
Run the command 'rclone version' and share the full output of the command.
rclone v1.72.0
os/version: linuxmint 22.2 (64 bit)
os/kernel: 6.14.0-36-generic (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.25.4
go/linking: static
go/tags: none
Which cloud storage system are you using? (eg Google Drive)
b2
The command you were trying to run (eg rclone copy /tmp remote:tmp)
My post did conflate the log-path switch with the log-level switch. (For, I wrote both of the following things. 1) ‘Commands that include both -–log-file=<path> and --verbose or -v or -vv fail without an error message.’ 2) ‘[O]ne [. .] command [. .] include[d] the following in its output: “CRITICAL: Can't set -v and --log-level”.') I apologise.
That which threw me was indeed the synonymy between the verbosity switches (-q, -v,-v,-vv) and the log-level switches (log-level=ERROR, etc.). Perhaps there is no problem with the documentation here. Yet, I continue to believe that Rclone could do better than abort silently when one combines those switches in a way that it dislikes.
By making the error go to the log file, that’s where you’d find the error as it was directed to be in the log file.
Good point. (Duh!)
As to the exit code: I tend to run rclone via a script, and that script executes rclone via xargs, and xargs tends (I forget the details) to return only 0 or, for an error, 123.