This is an automated email from the ASF dual-hosted git repository.
dmeden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new c70b88a095 RPC: Add log when handler fail yamlcpp validation on
registration. (#11278)
c70b88a095 is described below
commit c70b88a09515716c3fe0f4a5268553d6048f6587
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)
---
src/api/InkAPI.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/api/InkAPI.cc b/src/api/InkAPI.cc
index 85d8d81a9c..6399fca384 100644
--- a/src/api/InkAPI.cc
+++ b/src/api/InkAPI.cc
@@ -8813,6 +8813,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;
}