summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2025-05-04 12:39:30 +0200
committerJesper Jensen <jesper@jnsn.dev>2025-05-04 12:39:30 +0200
commit425133435ad215a8408387ddde52ea2d08e4b0c0 (patch)
treea7b8e63ea3ce493329a7aa760e8ea2a671e924df
parent58ac6bc2fd9fccec1dc94b3aa0198494c7f27dc4 (diff)
Remove some noisy debug tracing
-rw-r--r--src/main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index d47b3cd..9371510 100644
--- a/src/main.c
+++ b/src/main.c
@@ -70,9 +70,6 @@ void save_config() {
if(fwrite(table, sizeof(struct entry), table_size, config) != table_size)
fatal("Couldn't write state");
- long pos = ftell(config);
- dbg("Routing stops at 0x%04lX", pos);
-
if(fwrite(&peer_table_size, sizeof(peer_table_size), 1, config) != 1)
fatal("Couldn't write peer table size");
if(fwrite(&peer_table_load, sizeof(peer_table_load), 1, config) != 1)
@@ -117,7 +114,6 @@ int read_config() {
}
void flush_messages(int sfd, struct message* cursor, const struct message* const end) {
- dbg("Flushing %ld pending messages", end - cursor);
prom_counter_add(requests, end - cursor, NULL);
for(; cursor < end; cursor++) {
//now reply the client with the same data
@@ -235,13 +231,11 @@ int main(int argc, char** argv) {
rc = proto_run(&dht, buff, recv_len, (struct sockaddr_in*)&remote, remote_len, now, &message_cursor, outbuff+OUTBOX_SIZE);
flush_messages(dht.sfd, outbuff, message_cursor);
- dbg("Writing out config");
save_config();
}
proto_end(&dht);
metric_end();
- dbg("Writing out config");
save_config();
return rc;