Skip to content

Commit

Permalink
Rename variables log_filter_map_ and filter_map_
Browse files Browse the repository at this point in the history
Signed-off-by: Lucia Echevarria <[email protected]>
  • Loading branch information
LuciaEchevarria99 committed Jan 23, 2024
1 parent 54993a5 commit 6b931fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cpp_utils/include/cpp_utils/logging/CustomStdLogConsumer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CustomStdLogConsumer : public utils::LogConsumer
//! Create new CustomStdLogConsumer with regex filter generated from a string and with maximum verbosity kind.
CPP_UTILS_DllAPI
CustomStdLogConsumer(
const LogFilter& log_filter_map,
const LogFilter& log_filter_,
const eprosima::fastdds::dds::Log::Kind& log_verbosity);

//! Default destructor
Expand Down Expand Up @@ -82,7 +82,7 @@ class CustomStdLogConsumer : public utils::LogConsumer
const Log::Entry& entry);

//! Regex filter for entry category
LogFilter filter_map_;
LogFilter filter_;

//! Maximum Log Kind that will be printed.
eprosima::fastdds::dds::Log::Kind verbosity_;
Expand Down
6 changes: 3 additions & 3 deletions cpp_utils/src/cpp/logging/CustomStdLogConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ namespace eprosima {
namespace utils {

CustomStdLogConsumer::CustomStdLogConsumer(
const LogFilter& log_filter_map,
const LogFilter& log_filter_,
const eprosima::fastdds::dds::Log::Kind& log_verbosity)
: filter_map_(log_filter_map)
: filter_(log_filter_)
, verbosity_(log_verbosity)
{
// Do nothing
Expand Down Expand Up @@ -62,7 +62,7 @@ bool CustomStdLogConsumer::accept_entry_(
}

// Filter by regex
std::regex filter_regex(filter_map_[entry.kind]);
std::regex filter_regex(filter_[entry.kind]);

if (!std::regex_search(entry.context.category, filter_regex))
{
Expand Down

0 comments on commit 6b931fe

Please sign in to comment.