-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
No ability to disable download results #639
Comments
Because of the backward compatibility, we cannot change stdout to stderr to display the download result. You may redirect stderr to stdout, and redirect stdout to file or /dev/null as a workaround. |
Well, adding a switch to disable the download results wouldn't break backwards compability. |
We have --download-result option. It currently accepts "default", and "full". Perhaps, we can add "hide" (or something like that) to disable download result. |
That sounds good to me. |
Fix committed via aa863fa |
Works, thank you! |
$ aria2c https://domain.suffix/file.ext --checksum=sha-256=… --console-log-level=warn --download-result=hide
01 03/30 17:50:56 [ERROR] Checksum error detected. file=C:/…/file.ext
02
03 aria2 will resume download if the transfer is restarted.
04 If there are any errors, then see the log file. See '-l' option in help/man page for details. How to hide lines 03–04? They annoy me. |
On error:
Both download results and errors are printed on stdout (#638), so
aria2c >/dev/null
wouldn't have the desired result. A workaround in scripts/pipes is to save the log to a file, and mention the user to read it. Having the error printed directly, preferably to stderr, would be more effective.The text was updated successfully, but these errors were encountered: