dlogctl -c
dlogctl --enable
dlogutil -c -b radio -b system -b main
- LOG_DETAILS="dlogctl --disable (no args)"
+ LOG_DETAILS="dlogctl --disable (no args, limiter_apply_to_all_buffers=0)"
+ dlogctl --disable
+
+ # without 'limiter_apply_to_all_buffers=1' this
+ # only applies to the three platform buffers:
+ # main, radio, and system
+ PREPLOG_CONFIG_PATH="$DLOG_CONFIG_PATH"
+ DLOG_CONFIG_PATH="@datadir@/dlog-$type.conf.plog"
+ [ "$(dlogctl -g | grep regular | grep -c DISABLED)" -eq 3 ] && ok || fail
+ DLOG_CONFIG_PATH="$PREPLOG_CONFIG_PATH"
+
+ LOG_DETAILS="dlogctl --disable (no args, limiter_apply_to_all_buffers=1)"
dlogctl --disable
[ "$(dlogctl -g | grep regular | grep -c ENABLED)" -eq 0 ] && ok || fail
+
LOG_DETAILS="testing if filters were applied"
dlogsend -b system -t TEST test
dlogsend -b main -t TEST test