I'm trying to "watch" now netifd
is, by default, handing some situations and want to enable its built-in debugging. Given that the build tree for netifd
sets CMAKE_OPTIONS += -DDEBUG=1
I would expect that the debugging options are compiled in. Then given
Usage: netifd [options]
Options:
-d <mask>: Mask for debug messages
-s <path>: Path to the ubus socket
-p <path>: Path to netifd addons (default: /lib/netifd)
-c <path>: Path to UCI configuration
-h <path>: Path to the hotplug script
-r <path>: Path to resolv.conf
-l <level>: Log output level (default: 2)
-S: Use stderr instead of syslog for log messages
(default: /sbin/hotplug-call)
and a read of netfid.h
, I would have expected that a change to /etc/init.d/network
to include
procd_set_param command /sbin/netifd -d 15 -l 7
would have been logging debug-level messages for the four categories called out in the enums of netifd.h
Trying -l4
, consistent with the seemingly non-standard definition of L_DEBUG
in netifd.h
doesn't resolve it either.
Is there something else I am missing?