Add info() on bind/unbind of nodes
This commit is contained in:
parent
54c13c9694
commit
99ab1d60aa
2
node.c
2
node.c
|
@ -73,6 +73,7 @@ int bind_node(cmsg_bytes_t name, node_t *n) {
|
|||
}
|
||||
hashtable_put(&directory, name, n);
|
||||
hashtable_put(&n->names, name, NULL);
|
||||
info("Binding node <<%.*s>> of class %s\n", name.len, name.bytes, n->node_class->name);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -82,6 +83,7 @@ int unbind_node(cmsg_bytes_t name) {
|
|||
if (n == NULL) {
|
||||
return 0;
|
||||
} else {
|
||||
info("Unbinding node <<%.*s>> of class %s\n", name.len, name.bytes, n->node_class->name);
|
||||
hashtable_erase(&n->names, name);
|
||||
hashtable_erase(&directory, name);
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue