Turn off logs in cdc_acm.c

Hi,

I was trying to turn off logging in zephyr\subsys\usb\class\cdc_acm.c, by setting LOG_LEVEL to 0, but when I do that the logs are still printed on the console.

First I've done it through config, and then also tried changing the file directly, but in both cases logs are still printed.

#define LOG_LEVEL CONFIG_USB_CDC_ACM_LOG_LEVEL
#include "logging/log.h"
LOG_MODULE_REGISTER(usb_cdc_acm);

Any ideas why would that be? If I understand the concept correctly, when I set LOG_LEVEL, the program should check that one, and not the default log level.

Related