Permalink
Browse files

NgxFetch: Log url and error when url parsing fails.

Fixes #1148
  • Loading branch information...
oschaaf committed Mar 11, 2016
1 parent a9142f0 commit 6634754dbaf08839ef1d6db26a3aac5cd11e2947
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/ngx_fetch.cc
@@ -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;
}

0 comments on commit 6634754

Please sign in to comment.