Make informative logs about edge changes
This commit is contained in:
parent
f93352b095
commit
c18771a96d
1 changed files with 5 additions and 7 deletions
|
@ -143,15 +143,13 @@ bool add_edge_h(connection_t *c, const char *request) {
|
||||||
sockaddrfree(&local_address);
|
sockaddrfree(&local_address);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
logger(DEBUG_PROTOCOL, LOG_WARNING, "Got %s from %s (%s) which does not match existing entry",
|
|
||||||
"ADD_EDGE", c->name, c->hostname);
|
|
||||||
/* Update weight first */
|
/* Update weight first */
|
||||||
if(e->weight != weight){
|
if(e->weight != weight){
|
||||||
logger(DEBUG_PROTOCOL, LOG_WARNING, "Got %s from %s (%s) with new weight %d -> %d",
|
logger(DEBUG_PROTOCOL, LOG_WARNING, "Got %s from %s (%s) with new weight %s -> %s %d -> %d",
|
||||||
"ADD_EDGE", c->name, c->hostname, e->weight, weight);
|
"ADD_EDGE", c->name, c->hostname, e->from->name, e->to->name, e->weight, weight);
|
||||||
//edge_update_weigth(e, weight);
|
} else {
|
||||||
//if (e->reverse)
|
logger(DEBUG_PROTOCOL, LOG_WARNING, "Got %s from %s (%s) which does not match existing entry",
|
||||||
// edge_update_weigth(e->reverse, weight);
|
"ADD_EDGE", c->name, c->hostname);
|
||||||
}
|
}
|
||||||
edge_del(e);
|
edge_del(e);
|
||||||
graph();
|
graph();
|
||||||
|
|
Loading…
Reference in a new issue