Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pytorch/cpuinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarat Dukhan <marat@fb.com>2018-12-16 13:34:43 +0300
committerMarat Dukhan <marat@fb.com>2018-12-16 13:34:43 +0300
commit52b2c08a310aa9f95e41b219c65d162ee754d318 (patch)
tree0455a2a0d8fbb36c07cf2472f62c17f98cfb5de8 /configure.py
parentccbddb58385777e9348a085abeeaf056f214c464 (diff)
Expose logging level in configuration parameters
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py6
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: