mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 20:14:23 +08:00
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:
committed by
Copybara-Service
parent
6e7b7e8a26
commit
86372e7a21
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user