1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Improve messages when writing a document to stdout.

This commit is contained in:
Steven Schubiger 2009-02-21 17:32:12 +01:00
parent 1ebd5828cb
commit fb7916aa1d
2 changed files with 20 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2009-02-21 Steven Schubiger <stsc@member.fsf.org>
* http.c (http_loop): When a document is written to
standard output, don't claim it has been saved to a file.
Addresses bug #20520.
2009-02-18 Steven Schubiger <stsc@members.fsf.org>
* recur.h: Remove the dangling declaration for recursive_cleanup().

View File

@ -2756,9 +2756,14 @@ Remote file exists.\n\n"));
{
if (*dt & RETROKF)
{
bool write_to_stdout = (opt.output_document && HYPHENP (opt.output_document));
logprintf (LOG_VERBOSE,
_("%s (%s) - %s saved [%s/%s]\n\n"),
tms, tmrate, quote (hstat.local_file),
write_to_stdout
? _("%s (%s) - written to stdout %s[%s/%s]\n\n")
: _("%s (%s) - %s saved [%s/%s]\n\n"),
tms, tmrate,
write_to_stdout ? "" : quote (hstat.local_file),
number_to_static_string (hstat.len),
number_to_static_string (hstat.contlen));
logprintf (LOG_NONVERBOSE,
@ -2787,9 +2792,14 @@ Remote file exists.\n\n"));
{
if (*dt & RETROKF)
{
bool write_to_stdout = (opt.output_document && HYPHENP (opt.output_document));
logprintf (LOG_VERBOSE,
_("%s (%s) - %s saved [%s]\n\n"),
tms, tmrate, quote (hstat.local_file),
write_to_stdout
? _("%s (%s) - written to stdout %s[%s]\n\n")
: _("%s (%s) - %s saved [%s]\n\n"),
tms, tmrate,
write_to_stdout ? "" : quote (hstat.local_file),
number_to_static_string (hstat.len));
logprintf (LOG_NONVERBOSE,
"%s URL:%s [%s] -> \"%s\" [%d]\n",