dht: adding dht::log common utilities namespace

This commit is contained in:
Simon Désaulniers committed 2016-04-08 18:36:02 -04:00
1 parent 3e4a739d9f
commit 4e54ac3ac3
5 files changed
+115 -4

No files matched your search

+4 -4
View File
@@ -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()) {