NgxFetch: Log url and error when url parsing fails.

Fixes https://github.com/pagespeed/ngx_pagespeed/issues/1148
This commit is contained in:
Otto van der Schaaf
2016-03-11 14:30:17 +01:00
committed by Jeff Kaufman
parent 21a4a83b77
commit 1051a90c4e
+3 -1
View File
@@ -315,7 +315,9 @@ bool NgxFetch::Init() {
}
if (!ParseUrl()) {
message_handler_->Message(kError, "NgxFetch: ParseUrl() failed");
message_handler_->Message(kError,
"NgxFetch: ParseUrl() failed for [%s]:%s",
str_url_.c_str(), url_.err);
return false;
}