diff --git a/src/core/util/log.cc b/src/core/util/log.cc index e29a7d7b930..726dde12c6e 100644 --- a/src/core/util/log.cc +++ b/src/core/util/log.cc @@ -115,15 +115,17 @@ void gpr_log_verbosity_init(void) { absl::string_view verbosity = grpc_core::ConfigVars::Get().Verbosity(); DVLOG(2) << "Log verbosity: " << verbosity; if (absl::EqualsIgnoreCase(verbosity, "INFO")) { - LOG(WARNING) << "Not suitable for production. Prefer WARNING or ERROR. " - "However if you see this message in a debug environmenmt " - "or test environmenmt it is safe to ignore this message."; + LOG_FIRST_N(WARNING, 1) + << "Not suitable for production. Prefer WARNING or ERROR. " + "However if you see this message in a debug environmenmt " + "or test environmenmt it is safe to ignore this message."; absl::SetVLogLevel("*grpc*/*", -1); absl::SetMinLogLevel(absl::LogSeverityAtLeast::kInfo); } else if (absl::EqualsIgnoreCase(verbosity, "DEBUG")) { - LOG(WARNING) << "Not suitable for production. Prefer WARNING or ERROR. " - "However if you see this message in a debug environmenmt " - "or test environmenmt it is safe to ignore this message."; + LOG_FIRST_N(WARNING, 1) + << "Not suitable for production. Prefer WARNING or ERROR. " + "However if you see this message in a debug environmenmt " + "or test environmenmt it is safe to ignore this message."; absl::SetVLogLevel("*grpc*/*", 2); absl::SetMinLogLevel(absl::LogSeverityAtLeast::kInfo); } else if (absl::EqualsIgnoreCase(verbosity, "ERROR")) {