Fixes build warnings in maxmind_acl (#7085)
diff --git a/plugins/experimental/maxmind_acl/mmdb.cc b/plugins/experimental/maxmind_acl/mmdb.cc
index caf3e51..1634fe8 100644
--- a/plugins/experimental/maxmind_acl/mmdb.cc
+++ b/plugins/experimental/maxmind_acl/mmdb.cc
@@ -68,7 +68,7 @@
}
#endif
} catch (const YAML::Exception &e) {
- TSError("YAML::Exception %s when parsing YAML config file %s for maxmind", e.what(), configloc.c_str());
+ TSError("[%s] YAML::Exception %s when parsing YAML config file %s for maxmind", PLUGIN_NAME, e.what(), configloc.c_str());
return status;
}
@@ -152,7 +152,7 @@
}
}
} catch (const YAML::Exception &e) {
- TSDebug("YAML::Exception %s when parsing YAML config file country code deny list for maxmind", e.what());
+ TSDebug(PLUGIN_NAME, "YAML::Exception %s when parsing YAML config file country code deny list for maxmind", e.what());
return false;
}
@@ -175,7 +175,7 @@
}
}
} catch (const YAML::Exception &e) {
- TSDebug("YAML::Exception %s when parsing YAML config file ip deny list for maxmind", e.what());
+ TSDebug(PLUGIN_NAME, "YAML::Exception %s when parsing YAML config file ip deny list for maxmind", e.what());
return false;
}
@@ -233,7 +233,7 @@
}
}
} catch (const YAML::Exception &e) {
- TSDebug("YAML::Exception %s when parsing YAML config file country code allow list for maxmind", e.what());
+ TSDebug(PLUGIN_NAME, "YAML::Exception %s when parsing YAML config file country code allow list for maxmind", e.what());
return false;
}
@@ -256,7 +256,7 @@
}
}
} catch (const YAML::Exception &e) {
- TSDebug("YAML::Exception %s when parsing YAML config file ip allow list for maxmind", e.what());
+ TSDebug(PLUGIN_NAME, "YAML::Exception %s when parsing YAML config file ip allow list for maxmind", e.what());
return false;
}
@@ -315,7 +315,7 @@
}
}
} catch (const YAML::Exception &e) {
- TSDebug("YAML::Exception %s when parsing YAML config file regex allow list for maxmind", e.what());
+ TSDebug(PLUGIN_NAME, "YAML::Exception %s when parsing YAML config file regex allow list for maxmind", e.what());
return;
}
}
@@ -537,7 +537,7 @@
// UNKNOWN_IP if it does not exist in either, this is then used to determine
// action based on the default allow action
ipstate
-Acl::eval_ip(const sockaddr *sock)
+Acl::eval_ip(const sockaddr *sock) const
{
#if 0
for (auto &spot : allow_ip_map) {