From 035b97c2989567a80f0756c7ed0d262d421b07c1 Mon Sep 17 00:00:00 2001 From: Arvi Date: Thu, 7 Dec 2023 11:05:19 -0500 Subject: [PATCH] fix log message level --- src/polysolve/nonlinear/Solver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/polysolve/nonlinear/Solver.cpp b/src/polysolve/nonlinear/Solver.cpp index 9be040e..5e995f9 100644 --- a/src/polysolve/nonlinear/Solver.cpp +++ b/src/polysolve/nonlinear/Solver.cpp @@ -538,7 +538,7 @@ namespace polysolve::nonlinear // Log error in either case to make it more visible in the logs. if (match) - m_logger.warn("step size: {}, finite difference: {}, derivative: {}", gradient_fd_eps, fd, analytic); + m_logger.debug("step size: {}, finite difference: {}, derivative: {}", gradient_fd_eps, fd, analytic); else m_logger.error("step size: {}, finite difference: {}, derivative: {}", gradient_fd_eps, fd, analytic); } @@ -556,7 +556,7 @@ namespace polysolve::nonlinear match = (grad_fd - grad).norm() < 1e-8 || (grad_fd - grad).norm() < 1e-4 * (grad).norm(); if (match) - m_logger.warn("step size: {}, all gradient components match finite difference", gradient_fd_eps); + m_logger.debug("step size: {}, all gradient components match finite difference", gradient_fd_eps); else m_logger.error("step size: {}, all gradient components do not match finite difference", gradient_fd_eps); }