Remove an undocumented behavior of --vmodule and absl::SetVLogLevel that could set a module_pattern to defer to the global vlog threshold.

PiperOrigin-RevId: 819849697
Change-Id: Ic1ddb5e92338e6cae07850a6ebbed001df496022
This commit is contained in:
Andy Getzendanner
2025-10-15 11:44:47 -07:00
committed by Copybara-Service
parent 6e7b7e8a26
commit 86372e7a21
2 changed files with 2 additions and 3 deletions

View File

@@ -159,10 +159,10 @@ int VLogLevel(absl::string_view file, const std::vector<VModuleInfo>* infos,
// If there are any slashes in the pattern, try to match the full
// name.
if (FNMatch(info.module_pattern, stem)) {
return info.vlog_level == kUseFlag ? current_global_v : info.vlog_level;
return info.vlog_level;
}
} else if (FNMatch(info.module_pattern, stem_basename)) {
return info.vlog_level == kUseFlag ? current_global_v : info.vlog_level;
return info.vlog_level;
}
}

View File

@@ -48,7 +48,6 @@ class VLogSite;
int RegisterAndInitialize(VLogSite* absl_nonnull v);
void UpdateVLogSites();
constexpr int kUseFlag = (std::numeric_limits<int16_t>::min)();
// Represents a unique callsite for a `VLOG()` or `VLOG_IS_ON()` call.
//