From bfef6bd03eaeb3a8238c0fb2d993c4c3860ffeae Mon Sep 17 00:00:00 2001 From: mrava87 Date: Mon, 21 Jul 2025 19:27:23 +0100 Subject: [PATCH] feat: improved used of logging library --- pyproximal/proximal/Simplex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproximal/proximal/Simplex.py b/pyproximal/proximal/Simplex.py index 8850264..4608fc2 100644 --- a/pyproximal/proximal/Simplex.py +++ b/pyproximal/proximal/Simplex.py @@ -17,7 +17,7 @@ jit = None jit_message = 'Failed to import numba (error:%s), use numpy.' % e -logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.WARNING) +logger = logging.getLogger(__name__) class _Simplex(ProxOperator): @@ -222,7 +222,7 @@ def Simplex(n, radius, dims=None, axis=-1, maxiter=100, maxiter=maxiter, ftol=ftol, xtol=xtol, call=call) else: if engine == 'numba' and jit is None: - logging.warning(jit_message) + logger.warning(jit_message) s = _Simplex(n, radius, dims=dims, axis=axis, maxiter=maxiter, xtol=xtol, call=call) return s \ No newline at end of file