Skip to content

Commit f70ce9d

Browse files
brbzull0cmcfarlen
authored andcommitted
RPC: Add log when handler fail yamlcpp validation on registration. (#11278)
(cherry picked from commit c70b88a)
1 parent 82477df commit f70ce9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/api/InkAPI.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8725,6 +8725,9 @@ TSRPCRegister(const char *provider_name, size_t provider_len, const char *yaml_v
87258725
// TSYaml to the YAML::Node, in order for them to make sure the version compatibility they need to register here and make sure
87268726
// the version is the same.
87278727
if (std::string_view{yaml_version, yamlcpp_lib_len} != YAMLCPP_LIB_VERSION) {
8728+
Debug("rpc.api", "[%.*s] YAML version check failed. Passed='%.*s', expected='%s'", static_cast<int>(provider_len),
8729+
provider_name, static_cast<int>(yamlcpp_lib_len), yaml_version, YAMLCPP_LIB_VERSION);
8730+
87288731
return nullptr;
87298732
}
87308733

0 commit comments

Comments
 (0)