Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
NgxFetch: Log url and error when url parsing fails.
Browse files Browse the repository at this point in the history
Fixes #1148
  • Loading branch information
oschaaf committed Mar 11, 2016
1 parent a9142f0 commit 6634754
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ngx_fetch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6634754

Please sign in to comment.