Merge pull request #1150 from pagespeed/oschaaf-trunk-tracking-issue-1148

NgxFetch: Log url and error when url parsing fails.
This commit is contained in:
Otto van der Schaaf
2016-03-11 14:53:00 +01:00
+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;
}