summaryrefslogtreecommitdiff
path: root/testing/DHT_test.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-08-19 13:07:45 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-08-27 01:16:14 +0100
commit13ae9e9a93a1c02fad9475002c0391b86b7ad7bb (patch)
treea9575d3582c4f40e051c93ae18dded03fdddc432 /testing/DHT_test.c
parent1f25fc0ae417bfc47dea4966cb5e43689aa88d5c (diff)
Move logging to a callback.
This removes the global logger (which by the way was deleted when the first tox was killed, so other toxes would then stop logging). Various bits of the code now carry a logger or pass it around. It's a bit less transparent now, but now there is no need to have a global logger, and clients can decide what to log and where.
Diffstat (limited to 'testing/DHT_test.c')
-rw-r--r--testing/DHT_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c
index 4a4569a8..91e556c6 100644
--- a/testing/DHT_test.c
+++ b/testing/DHT_test.c
@@ -187,7 +187,7 @@ int main(int argc, char *argv[])
187 IP ip; 187 IP ip;
188 ip_init(&ip, ipv6enabled); 188 ip_init(&ip, ipv6enabled);
189 189
190 DHT *dht = new_DHT(new_networking(ip, PORT)); 190 DHT *dht = new_DHT(NULL, new_networking(NULL, ip, PORT));
191 printf("OUR ID: "); 191 printf("OUR ID: ");
192 uint32_t i; 192 uint32_t i;
193 193