mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
dht: log cleanup
This commit is contained in:
1 parent
c7e2483160
commit
e4516772ee
8 files changed
+35
-43
No files matched your search
+1
-1
@@ -205,7 +205,7 @@ void cmd_loop(std::shared_ptr<DhtRunner>& node, dht_params& params
|
||||
} else if (op == "log") {
|
||||
iss >> idstr;
|
||||
InfoHash filter(idstr);
|
||||
params.log = filter == InfoHash{} ? !params.log : true;
|
||||
params.log = filter ? true : !params.log;
|
||||
if (params.log)
|
||||
log::enableLogging(*node);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user