Skip to content

Commit

Permalink
fix check_service.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-christophe81 committed Dec 19, 2024
1 parent c5ecc6c commit 18ab0a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions agent/native_windows/src/check_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,8 @@ check_service::check_service(
re2::RE2 filter_typ_re(val.GetString());
if (!filter_typ_re.ok()) {
throw exceptions::msg_fmt(
"command: {} warning-state: {} is not a valid regex",
cmd_name, val.GetString());
"command: {} warning-state: {} is not a valid regex", cmd_name,
val.GetString());
} else {
for (const auto& [label, flag] : _label_state) {
if (RE2::FullMatch(label, filter_typ_re)) {
Expand Down Expand Up @@ -607,8 +607,8 @@ check_service::check_service(
to_ins->get_status()),
std::move(to_ins));
}
} else if (key != "filter-name" || key != "exclude-name" ||
key != "filter-display" || key != "exclude-display" ||
} else if (key != "filter-name" && key != "exclude-name" &&
key != "filter-display" && key != "exclude-display" &&
key != "start-auto") {
SPDLOG_LOGGER_ERROR(logger, "command: {}, unknown parameter: {}",
cmd_name, member_iter->name);
Expand Down

0 comments on commit 18ab0a0

Please sign in to comment.