[PATCH] lib/xtrx: honouring/using the loglevel parameter