-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display the correct failing host on worker boot #5352
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -157,6 +157,11 @@ | |||||||||||||||||||
|
||||||||||||||||||||
my $error = $tx->error; | ||||||||||||||||||||
my $error_message = "Unable to upgrade to ws connection via $websocket_url"; | ||||||||||||||||||||
|
||||||||||||||||||||
if ($tx->res->error && $tx->res->error->{message}) { | ||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use the post-if to be consistent with other lines |
||||||||||||||||||||
$error_message .= sprintf(", %s in %s", $tx->res->error->{message}, $tx->req->url); | ||||||||||||||||||||
} | ||||||||||||||||||||
|
||||||||||||||||||||
$error_message .= ", code $error->{code}" if ($error && $error->{code}); | ||||||||||||||||||||
Comment on lines
+161
to
165
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can just use
Suggested change
I have also removed the URL because it is already part of the error message and I would just change that other part. However, if you disagree and want the original URL still being logged that's fine as well. |
||||||||||||||||||||
$self->_set_status(failed => {error_message => $error_message}); | ||||||||||||||||||||
return undef; | ||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just alter the URL here:
The original URL is still logged in the "Establishing …" line so there's nothing lost in my opinion.