NXP-12868: avoid trace logs spamming when trace is not activated