Skip to content

Commit

Permalink
fix: improve log format about gc stats
Browse files Browse the repository at this point in the history
  • Loading branch information
thawk105 committed Feb 8, 2024
1 parent 5950460 commit 9834b75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/concurrency_control/garbage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,10 @@ void release_key_memory() {
void output_gc_stats(stats_info_type const& stats_info) {
//std::stringstream ss;
//ss.clear();
VLOG(log_info_gc_stats)
<< log_location_prefix_detail_info << "===Stats by GC===";
VLOG(log_info_gc_stats) << log_location_prefix_detail_info
<< "===Stats by GC===" << std::endl
<< "# storages: " << stats_info.size() << std::endl;
<< "# storages: " << stats_info.size();

for (const auto& elem : stats_info) {
std::string str_st_key{};
Expand Down

0 comments on commit 9834b75

Please sign in to comment.