mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Use DEBUGP instead of commenting out all the _wonderful_ printfs
This commit is contained in:
parent
ccd62071dc
commit
3ae04f5fe4
@ -331,7 +331,7 @@ iri_free (struct iri *i)
|
||||
void
|
||||
set_uri_encoding (struct iri *i, char *charset)
|
||||
{
|
||||
logprintf (LOG_VERBOSE, "[ uri = `%s'\n", charset);
|
||||
DEBUGP (("[IRI uri = `%s'\n", quote (charset)));
|
||||
if (opt.encoding_remote)
|
||||
return;
|
||||
if (i->uri_encoding)
|
||||
@ -347,7 +347,7 @@ set_uri_encoding (struct iri *i, char *charset)
|
||||
void
|
||||
set_content_encoding (struct iri *i, char *charset)
|
||||
{
|
||||
logprintf (LOG_VERBOSE, "[ content = `%s'\n", charset);
|
||||
DEBUGP (("[IRI content = %s\n", quote (charset)));
|
||||
if (opt.encoding_remote)
|
||||
return;
|
||||
if (i->content_encoding)
|
||||
|
@ -116,7 +116,8 @@ url_enqueue (struct url_queue *queue, struct iri *i,
|
||||
DEBUGP (("Queue count %d, maxcount %d.\n", queue->count, queue->maxcount));
|
||||
|
||||
if (i)
|
||||
printf ("[Enqueuing %s with %s\n", url, i->uri_encoding);
|
||||
DEBUGP (("[IRI Enqueuing %s with %s\n", quote (url),
|
||||
quote (i->uri_encoding)));
|
||||
|
||||
if (queue->tail)
|
||||
queue->tail->next = qel;
|
||||
|
@ -635,7 +635,8 @@ retrieve_url (const char *origurl, char **file, char **newloc,
|
||||
return URLERROR;
|
||||
}
|
||||
|
||||
printf ("[Retrieving %s with %s (UTF-8=%d)\n", url, iri->uri_encoding, iri->utf8_encode);
|
||||
DEBUGP (("[IRI Retrieving %s with %s (UTF-8=%d)\n", quote (url),
|
||||
quote (iri->uri_encoding), iri->utf8_encode));
|
||||
|
||||
if (!refurl)
|
||||
refurl = opt.referer;
|
||||
@ -788,7 +789,7 @@ retrieve_url (const char *origurl, char **file, char **newloc,
|
||||
if (!(*dt & RETROKF) && iri->utf8_encode)
|
||||
{
|
||||
iri->utf8_encode = false;
|
||||
printf ("[Fallbacking to non-utf8 for `%s'\n", url);
|
||||
DEBUGP (("[IRI Fallbacking to non-utf8 for %s\n", quote (url)));
|
||||
goto second_try;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user