Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit 6634754

Browse files
committed
NgxFetch: Log url and error when url parsing fails.
Fixes #1148
1 parent a9142f0 commit 6634754

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ngx_fetch.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ bool NgxFetch::Init() {
315315
}
316316

317317
if (!ParseUrl()) {
318-
message_handler_->Message(kError, "NgxFetch: ParseUrl() failed");
318+
message_handler_->Message(kError,
319+
"NgxFetch: ParseUrl() failed for [%s]:%s",
320+
str_url_.c_str(), url_.err);
319321
return false;
320322
}
321323

0 commit comments

Comments
 (0)