Add info() on bind/unbind of nodes

This commit is contained in:
Tony Garnock-Jones 2011-01-01 21:13:41 -05:00
parent 54c13c9694
commit 99ab1d60aa
1 changed files with 2 additions and 0 deletions

2
node.c
View File

@ -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;