diff options
| author | Anton <anton@picapica> | 2021-07-10 02:15:23 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2021-07-10 02:15:23 +0400 |
| commit | 176381a1bdbd595db2934834f8d53a7e401dde38 (patch) | |
| tree | 25bc38bfb405da10b67745c142e9cd1a225544e6 | |
| parent | 266dd47e5a04f9f6e864d8b429eea1b17e2113a1 (diff) | |
| download | pica-pica-176381a1bdbd595db2934834f8d53a7e401dde38.tar.gz pica-pica-176381a1bdbd595db2934834f8d53a7e401dde38.zip | |
pica-node: make some debug messages more meaningful
| -rw-r--r-- | PICA_node.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/PICA_node.c b/PICA_node.c index 7394842..7adfa91 100644 --- a/PICA_node.c +++ b/PICA_node.c @@ -487,7 +487,9 @@ unsigned int procmsg_CONNREQOUTG(unsigned char* buf, unsigned int size, void* pt i = (struct client *)ptr; - PICA_debug1("received CONNREQOUTG from %s", PICA_id_to_base64(i->id, NULL)); + char caller_id_buf[2 * PICA_ID_SIZE], callee_id_buf[2 * PICA_ID_SIZE]; + PICA_debug1("received CONNREQOUTG from %s\n searching for %s", PICA_id_to_base64(i->id, caller_id_buf), + PICA_id_to_base64(callee_id, callee_id_buf)); callee_id = buf + 2; @@ -1939,7 +1941,7 @@ struct client* client_tree_search(const unsigned char *id) i_ptr = i_ptr->right; } - PICA_debug1("client_tree_search- id not found"); + PICA_debug1("client_tree_search: id %s not found", PICA_id_to_base64(id, NULL)); return 0; } @@ -2520,7 +2522,7 @@ void process_timeouts_c2n() if (kill_ptr) { - PICA_info("Disconnecting user %u due to noreply timeout", kill_ptr -> id); + PICA_info("Disconnecting user %s due to noreply timeout", PICA_id_to_base64(kill_ptr -> id, NULL)); client_list_delete(kill_ptr); kill_ptr = 0; } |
