[test] Use std::regex_search in no_logging test (#36131)

<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #36131

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36131 from yijiem:no-logging f3f638176f
PiperOrigin-RevId: 617630514
pull/36159/head
Yijie Ma 1 year ago committed by Copybara-Service
parent 125492ea70
commit 2d88de979e
  1. 2
      test/core/end2end/tests/no_logging.cc

@ -87,7 +87,7 @@ class Verifier {
}
auto it = allowed_logs_by_module->find(filename);
if (it != allowed_logs_by_module->end() &&
std::regex_match(args->message, it->second)) {
std::regex_search(args->message, it->second)) {
gpr_default_log(args);
return;
}

Loading…
Cancel
Save