Skip to content

Commit 817aef6

Browse files
committed
Minor tweaks
1 parent 411ae04 commit 817aef6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • appsec/src/helper/subscriber

appsec/src/helper/subscriber/waf.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ class waf_builder {
6868
diagnostics = parameter::map();
6969
for (const auto &added : cs.added) {
7070
const remote_config::parsed_config_key &key = added.first;
71-
if (key.product() == remote_config::known_products::ASM_DD &&
72-
using_default_rules_) {
71+
if (using_default_rules_ &&
72+
key.product() == remote_config::known_products::ASM_DD) {
7373
remove_default_config();
7474
}
7575

@@ -79,9 +79,9 @@ class waf_builder {
7979
&these_diags);
8080
diagnostics.merge(std::move(these_diags));
8181
if (res) {
82-
SPDLOG_DEBUG("Added config: {}", key.full_key());
82+
SPDLOG_DEBUG("Added/updated config: {}", key.full_key());
8383
} else {
84-
SPDLOG_WARN("Failed to add config: {}", key.full_key());
84+
SPDLOG_WARN("Failed to add/update config: {}", key.full_key());
8585
}
8686
}
8787

0 commit comments

Comments
 (0)