mirror of https://github.com/grpc/grpc.git
[Log] Fix VLOG_IS_ON error (#37183)
It appears that `VLOG_IS_ON` is internal only and `ABSL_VLOG_IS_ON` is supposed to be used.
This is required to fix recent failures of [prod:grpc/core/master/linux/grpc_build_abseil-cpp_at_head](https://fusion2.corp.google.com/ci;ids=1930537984/kokoro/prod:grpc%2Fcore%2Fmaster%2Flinux%2Fgrpc_build_abseil-cpp_at_head/activity/db615bdd-a42b-4462-9911-c6185165223c/summary).
Error excerpt;
```
/var/local/git/grpc/src/core/util/log.cc: In function int gpr_should_log(gpr_log_severity):
/[var/local/git/grpc/src/core/util/log.cc:59](https://cs.corp.google.com/piper///depot/google3/var/local/git/grpc/src/core/util/log.cc?l=59&ws&snapshot=0):14: error: VLOG_IS_ON was not declared in this scope; did you mean VLOG_FIRST_N?
59 | return VLOG_IS_ON(2);
| ^~~~~~~~~~
| VLOG_FIRST_N
```
Closes #37183
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37183 from veblush:fix-log d7fbbdf2ff
PiperOrigin-RevId: 650708268
pull/37195/head
parent
945ae0dd2b
commit
8cd7697973
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue