From 6c45d3c2f449cf4f0c5a52178b9223f2d68b0868 Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Thu, 12 Dec 2024 20:35:41 +0000 Subject: [PATCH] Fix inversion of log levels --- python/cuml/cuml/internals/base.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/cuml/cuml/internals/base.pyx b/python/cuml/cuml/internals/base.pyx index d1b7b5acaf..529221ead3 100644 --- a/python/cuml/cuml/internals/base.pyx +++ b/python/cuml/cuml/internals/base.pyx @@ -230,7 +230,8 @@ class Base(TagsMixin, elif verbose is False: self.verbose = logger.level_enum.info else: - self.verbose = logger.level_enum(verbose) + # cuml's verbosity levels are the inverse of rapids-logger's (spdlog's) + self.verbose = logger.level_enum(6 - verbose) ELSE: self.verbose = verbose