Merge pull request #25294 from yang-g/default_verbosity

Add a macro to configure default log verbosity level
reviewable/pr25298/r1
Yang Gao 4 years ago committed by GitHub
commit f6f75a6ff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/core/lib/gpr/log.cc

@ -28,7 +28,12 @@
#include <stdio.h>
#include <string.h>
GPR_GLOBAL_CONFIG_DEFINE_STRING(grpc_verbosity, "ERROR",
#ifndef GPR_DEFAULT_LOG_VERBOSITY_STRING
#define GPR_DEFAULT_LOG_VERBOSITY_STRING "ERROR"
#endif // !GPR_DEFAULT_LOG_VERBOSITY_STRING
GPR_GLOBAL_CONFIG_DEFINE_STRING(grpc_verbosity,
GPR_DEFAULT_LOG_VERBOSITY_STRING,
"Default gRPC logging verbosity")
GPR_GLOBAL_CONFIG_DEFINE_STRING(grpc_stacktrace_minloglevel, "",
"Messages logged at the same or higher level "

Loading…
Cancel
Save