rework log handling

- make logging events more structured
- add fine grained control over log events
- make it possible to receive more detailed events via ubus

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2021-04-16 14:15:15 +02:00
parent 6d62833ca1
commit 2b1c740ce3
11 changed files with 529 additions and 161 deletions

View File

@@ -123,6 +123,9 @@ void config_set_interfaces(struct blob_attr *data)
struct blob_attr *cur;
int rem;
if (!data)
return;
if (!blobmsg_check_attr_list(data, BLOBMSG_TYPE_STRING))
return;
@@ -485,9 +488,6 @@ usteer_send_update_timer(struct uloop_timeout *t)
struct usteer_node *node;
void *c;
MSG_T("remote_update_interval", "start remote update (interval=%u)\n",
config.remote_update_interval);
usteer_update_time();
uloop_timeout_set(t, config.remote_update_interval);