Skip to content

Commit

Permalink
enh(common/log_v2): default level is error except for core and config… (
Browse files Browse the repository at this point in the history
#1559)

REFS: MON-144646
  • Loading branch information
bouda1 committed Jul 23, 2024
1 parent 586732d commit c63acb4
Show file tree
Hide file tree
Showing 5 changed files with 340 additions and 153 deletions.
6 changes: 4 additions & 2 deletions broker/core/src/broker_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,10 @@ grpc::Status broker_impl::GetLogInfo(grpc::ServerContext* context
return grpc::Status(grpc::StatusCode::INVALID_ARGUMENT, msg);
}
} else {
for (auto& p : lvs)
map[p.first] = p.second;
for (auto& p : lvs) {
auto level = to_string_view(p.second);
map[p.first] = std::string(level.data(), level.size());
}
return grpc::Status::OK;
}
}
Expand Down
Loading

0 comments on commit c63acb4

Please sign in to comment.