Skip to content

Commit

Permalink
Fix access_log_manager_impl unused variable warning (envoyproxy#12828)
Browse files Browse the repository at this point in the history
Don't use structured binding to iterate access logs, log_key is unused

Signed-off-by: Sunjay Bhatia <[email protected]>
  • Loading branch information
sunjayBhatia authored Aug 26, 2020
1 parent 79058d6 commit c555587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/common/access_log/access_log_manager_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ AccessLogManagerImpl::~AccessLogManagerImpl() {
}

void AccessLogManagerImpl::reopen() {
for (auto& [log_key, log_file_ptr] : access_logs_) {
log_file_ptr->reopen();
for (auto& iter : access_logs_) {
iter.second->reopen();
}
}

Expand Down

0 comments on commit c555587

Please sign in to comment.