mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
dht: adding dht::log common utilities namespace
This commit is contained in:
1 parent
3e4a739d9f
commit
4e54ac3ac3
5 files changed
+115
-4
No files matched your search
+4
-4
@@ -137,9 +137,9 @@ void cmd_loop(DhtRunner& dht, dht_params& params)
|
||||
} else if (op == "log") {
|
||||
params.log = !params.log;
|
||||
if (params.log)
|
||||
enableLogging(dht);
|
||||
log::enableLogging(dht);
|
||||
else
|
||||
disableLogging(dht);
|
||||
log::disableLogging(dht);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -261,9 +261,9 @@ main(int argc, char **argv)
|
||||
|
||||
if (params.log) {
|
||||
if (not params.logfile.empty())
|
||||
enableFileLogging(dht, params.logfile);
|
||||
log::enableFileLogging(dht, params.logfile);
|
||||
else
|
||||
enableLogging(dht);
|
||||
log::enableLogging(dht);
|
||||
}
|
||||
|
||||
if (not params.bootstrap.first.empty()) {
|
||||
|
||||
Reference in new issue
Block a user