From 7e258cacd9b59bf3781a150ec2867ba54295e701 Mon Sep 17 00:00:00 2001 From: Hari Krishna Sunder Date: Fri, 21 Jun 2024 16:33:23 -0700 Subject: [PATCH] Fix NOTE about SetVLOGLevel --- src/glog/vlog_is_on.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/glog/vlog_is_on.h b/src/glog/vlog_is_on.h index eb1c23353..77de9c204 100644 --- a/src/glog/vlog_is_on.h +++ b/src/glog/vlog_is_on.h @@ -103,11 +103,10 @@ namespace google { // Set VLOG(_IS_ON) level for module_pattern to log_level. // This lets us dynamically control what is normally set by the --vmodule flag. // Returns the level that previously applied to module_pattern. -// NOTE: To change the log level for VLOG(_IS_ON) sites -// that have already executed after/during InitGoogleLogging, -// one needs to supply the exact --vmodule pattern that applied to them. -// (If no --vmodule pattern applied to them -// the value of FLAGS_v will continue to control them.) +// NOTE: To change the log level for VLOG(_IS_ON) sites that matched a prior +// --vmodule pattern then the exact pattern has to be supplied again. (If no +// --vmodule pattern applied to them before then the first matching pattern will +// start to control them.) extern GLOG_EXPORT int SetVLOGLevel(const char* module_pattern, int log_level); // Various declarations needed for VLOG_IS_ON above: =========================