This repository was archived by the owner on Jan 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vm_tools: sommelier: set log-level from cmdline
New style logging uses the syntax `LOG(INFO) << "message";` to indicate the logging verbosity. That verbosity is tested prior to visible output, but the selection of which levels will be shown is only controllable at build-time via '-DLOG_LEVEL=-1'. There's no practical reason to require such. The test for visibility _may_ get optimized out by compiler for statically-defined LOG_LEVEL, but it is a trivial cost not worth optimizing in the general case. Other tricks can be used to solve that if it becomes an issue. Now it can be set with --log-level=<int>, with the default set in the old way with -DLOG_LEVEL=<int>, or defaulting to LOG_LEVEL_INFO (0) when not defined. BUG=b:339048928 TEST=sommelier --log-level=-1 ... Change-Id: I2de93e6c11ccba89022a4aa460c082644328e800 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/5517861 Tested-by: Ryan Neph <[email protected]> Reviewed-by: Chloe Pelling <[email protected]> Auto-Submit: Ryan Neph <[email protected]> Reviewed-by: Arjun Srinivasan <[email protected]> Commit-Queue: Ryan Neph <[email protected]>
- Loading branch information
Ryan Neph
authored and
Chromeos LUCI
committed
May 9, 2024
1 parent
d591683
commit f7c824f
Showing
3 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters