diff options
author | Marat Dukhan <marat@fb.com> | 2018-12-16 13:34:43 +0300 |
---|---|---|
committer | Marat Dukhan <marat@fb.com> | 2018-12-16 13:34:43 +0300 |
commit | 52b2c08a310aa9f95e41b219c65d162ee754d318 (patch) | |
tree | 0455a2a0d8fbb36c07cf2472f62c17f98cfb5de8 /configure.py | |
parent | ccbddb58385777e9348a085abeeaf056f214c464 (diff) |
Expose logging level in configuration parameters
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.py b/configure.py index ef4b27a..9ea8a32 100755 --- a/configure.py +++ b/configure.py @@ -4,7 +4,7 @@ import confu parser = confu.standard_parser("cpuinfo configuration script") parser.add_argument("--log", dest="log_level", - choices=("none", "error", "warning", "info", "debug"), default="error") + choices=("none", "fatal", "error", "warning", "info", "debug"), default="error") parser.add_argument("--mock", dest="mock", action="store_true") @@ -13,8 +13,8 @@ def main(args): build = confu.Build.from_options(options) macros = { - "CPUINFO_LOG_LEVEL": {"none": 0, "error": 1, "warning": 2, "info": 3, "debug": 4}[options.log_level], - "CPUINFO_LOG_TO_STDIO": int(not options.mock), + "CPUINFO_LOG_LEVEL": {"none": 0, "fatal": 1, "error": 2, "warning": 3, "info": 4, "debug": 5}[options.log_level], + "CLOG_LOG_TO_STDIO": int(not options.mock), "CPUINFO_MOCK": int(options.mock), } if build.target.is_linux or build.target.is_android: |