This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit f70ce9d6c421ddff42c589101a09be37e93c0f4f Author: Damian Meden <[email protected]> AuthorDate: Tue Apr 23 09:34:46 2024 +0200 RPC: Add log when handler fail yamlcpp validation on registration. (#11278) (cherry picked from commit c70b88a09515716c3fe0f4a5268553d6048f6587) --- src/api/InkAPI.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/InkAPI.cc b/src/api/InkAPI.cc index 9ef9510302..dbb449ed24 100644 --- a/src/api/InkAPI.cc +++ b/src/api/InkAPI.cc @@ -8725,6 +8725,9 @@ TSRPCRegister(const char *provider_name, size_t provider_len, const char *yaml_v // TSYaml to the YAML::Node, in order for them to make sure the version compatibility they need to register here and make sure // the version is the same. if (std::string_view{yaml_version, yamlcpp_lib_len} != YAMLCPP_LIB_VERSION) { + Debug("rpc.api", "[%.*s] YAML version check failed. Passed='%.*s', expected='%s'", static_cast<int>(provider_len), + provider_name, static_cast<int>(yamlcpp_lib_len), yaml_version, YAMLCPP_LIB_VERSION); + return nullptr; }
