logging/log_core.h: Fix unused variable diagnose

The current _mode variable can be diagnosed as unused by tools like
clang-tidy-14. This add a small fix to by pass this situation and allow
run analysis tool without this warning/error.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
1 file changed