mitchell852 closed pull request #2070: Add information to errors when
cdns/routing cannot contact TR.
URL: https://github.com/apache/incubator-trafficcontrol/pull/2070
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/traffic_ops/app/lib/API/Cdn.pm b/traffic_ops/app/lib/API/Cdn.pm
index 03264748f..8b463a258 100644
--- a/traffic_ops/app/lib/API/Cdn.pm
+++ b/traffic_ops/app/lib/API/Cdn.pm
@@ -524,7 +524,8 @@ sub routing {
my $c = $self->get_traffic_router_connection( {
hostname => $ccr_host } );
my $s = $c->get_crs_stats();
if ( !defined($s) ) {
- return $self->internal_server_error( {
"Internal Server" => "Error" } );
+ $self->app->log->error("Unable to contact
$ccr_host for $cdn_name.");
+ return $self->internal_server_error( {
"Internal Server" => "Error: Unable to contact $ccr_host" } );
}
else {
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services