My goal is to cut down the amount of chatter in the logs.
I wrote this code, and put it into test_file_level.c
LOG (LL_VERBOSE_DEBUG, ("verbose_debug %d", LL_VERBOSE_DEBUG));
LOG (LL_DEBUG, ("debug %d", LL_DEBUG));
LOG (LL_INFO, ("info %d", LL_INFO));
LOG (LL_WARN, ("warn %d", LL_WARN));
LOG (LL_ERROR, ("error %d", LL_ERROR));
LOG (LL_NONE, ("none %d", LL_NONE));
No matter if I do
mos config-set --no-reboot debug.file_level=test_file_debug=4
or
mos config-set --no-reboot debug.file_level=test_file_debug=0
I always get
[Jul 19 17:31:42.591] test_file_debug.c:13 info 2
[Jul 19 17:31:42.591] test_file_debug.c:14 warn 1
[Jul 19 17:31:42.599] test_file_debug.c:15 error 0
[Jul 19 17:31:42.599] test_file_debug.c:16 none -1
My expectation is that which levels are actually logged would be changed when I change debug.file_level.
How is debug.file_level supposed to work?