Ping ?
On Sun,  2 Jul 2023 07:10:14 +0200
Gwenhael Goavec-Merou <gwenhael.goavec-me...@trabucayre.com> wrote:

> loglevel parameter is never used and let loglevel to DEBUG, with an
> annoying flood of message in terminal.
> 
> This patch adds a call to xtrx_log_setlevel() at xtrx constructor level.
> 
> Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-me...@trabucayre.com>
> ---
>  lib/xtrx/xtrx_obj.cc | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/lib/xtrx/xtrx_obj.cc b/lib/xtrx/xtrx_obj.cc
> index 016b420..ab32a7f 100644
> --- a/lib/xtrx/xtrx_obj.cc
> +++ b/lib/xtrx/xtrx_obj.cc
> @@ -68,6 +68,8 @@ xtrx_obj::xtrx_obj(const std::string &path, unsigned
> loglevel, bool lmsreset) unsigned xtrxflag = (loglevel & XTRX_O_LOGLVL_MASK)
> | ((lmsreset) ? XTRX_O_RESET : 0); std::cerr << "xtrx_obj::xtrx_obj = " <<
> xtrxflag << std::endl; 
> +  xtrx_log_setlevel(loglevel, NULL);
> +
>    int res = xtrx_open_string(path.c_str(), &_obj);
>    if (res < 0) {
>      std::stringstream message;
> -- 
> 2.40.1
> 

Reply via email to