Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Sonnenberg <[email protected]>
  • Loading branch information
briansonnenberg committed Nov 10, 2024
1 parent de21b47 commit 493ca09
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions source/common/upstream/load_stats_reporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ LoadStatsReporter::LoadStatsReporter(const LocalInfo::LocalInfo& local_info,
}

void LoadStatsReporter::setRetryTimer() {
ENVOY_LOG(info, "Load reporter stats stream/connection will retry in {} ms.",
RETRY_DELAY_MS);
ENVOY_LOG(info, "Load reporter stats stream/connection will retry in {} ms.", RETRY_DELAY_MS);
retry_timer_->enableTimer(std::chrono::milliseconds(RETRY_DELAY_MS));
}

Expand Down Expand Up @@ -246,10 +245,12 @@ void LoadStatsReporter::onRemoteClose(Grpc::Status::GrpcStatus status, const std
response_timer_->disableTimer();
stream_ = nullptr;
if (status != Grpc::Status::WellKnownGrpcStatus::Ok) {
ENVOY_LOG(warn, "{} gRPC config stream closed: {}, {}", service_method_.name(), status, message);
ENVOY_LOG(warn, "{} gRPC config stream closed: {}, {}", service_method_.name(), status,
message);
handleFailure();
} else {
ENVOY_LOG(debug, "{} gRPC config stream closed gracefully, {}", service_method_.name(), message);
ENVOY_LOG(debug, "{} gRPC config stream closed gracefully, {}", service_method_.name(),
message);
setRetryTimer();
}
}
Expand Down

0 comments on commit 493ca09

Please sign in to comment.