From b172be9564c665856dfe2f55ae0535bbd39a99fe Mon Sep 17 00:00:00 2001 From: Sergiu Deitsch Date: Fri, 5 Jan 2024 01:43:22 +0100 Subject: [PATCH] fix: allow setting stderrthreshold using GLOG_stderrthreshold (#1034) --- src/flags.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/flags.cc b/src/flags.cc index 1fa17bd..c4c2aa4 100644 --- a/src/flags.cc +++ b/src/flags.cc @@ -87,9 +87,10 @@ GLOG_DEFINE_bool( // // The default is ERROR instead of FATAL so that users can see problems // when they run a program without having to look in another file. -DEFINE_int32(stderrthreshold, google::GLOG_ERROR, - "log messages at or above this level are copied to stderr in " - "addition to logfiles. This flag obsoletes --alsologtostderr."); +GLOG_DEFINE_int32( + stderrthreshold, google::GLOG_ERROR, + "log messages at or above this level are copied to stderr in " + "addition to logfiles. This flag obsoletes --alsologtostderr."); GLOG_DEFINE_string(alsologtoemail, "", "log messages go to these email addresses "