From d88140ecc5d72156ecce712f2d27cf413aaa2938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Wed, 15 Mar 2023 20:29:33 +0100 Subject: added logging envvar TRAVNIK_DEBUG TRAVNIK_EXPECTED --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 0949e4b..f0f41a4 100644 --- a/src/main.c +++ b/src/main.c @@ -144,7 +144,7 @@ int main (int argc, char ** argv) { dht->pollfds = &pollfds; dht->pollfds_size = &pollfds_size; dht->nfds = &nfds; - dht->verbosity |= (getenv("TRAVNIK_INCOMING_DHT") ? incoming_dht : 0) | (getenv("TRAVNIK_OUTGOING_DHT") ? outgoing_dht : 0) | expected | debug; + dht->verbosity |= (getenv("TRAVNIK_INCOMING_DHT") ? incoming_dht : 0) | (getenv("TRAVNIK_OUTGOING_DHT") ? outgoing_dht : 0) | expected | (getenv("TRAVNIK_DEBUG") ? debug : 0) | (getenv("TRAVNIK_EXĹ ECTED") ? expected : 0); dht->torrents_max = K; dht->peers_per_torrent_max = K; struct torrent * torrent = torrent_init(); -- cgit v1.2.3