From 2501f9980585a3a460d2b6b34e57ebeab29d50c3 Mon Sep 17 00:00:00 2001 From: Sergiu Deitsch Date: Fri, 5 Jan 2024 00:57:17 +0100 Subject: [PATCH] fix: allow setting stderrthreshold using GLOG_stderrthreshold --- src/flags.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/flags.cc b/src/flags.cc index 1fa17bd89..c4c2aa4b2 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 "