Skip to content
Snippets Groups Projects
Commit cf18effe authored by Seva's avatar Seva
Browse files

dhtnode: fix logging

parent b8c2ff8a
No related branches found
No related tags found
No related merge requests found
...@@ -541,9 +541,11 @@ main(int argc, char **argv) ...@@ -541,9 +541,11 @@ main(int argc, char **argv)
context.logger = log::getStdLogger(); context.logger = log::getStdLogger();
} }
node->run(params.port, config, std::move(context)); node->run(params.port, config, std::move(context));
if (context.logger)
log::enableLogging(*node);
if (not params.bootstrap.first.empty()) { if (not params.bootstrap.first.empty()) {
//std::cout << "Bootstrap: " << params.bootstrap.first << ":" << params.bootstrap.second << std::endl; std::cout << "Bootstrap: " << params.bootstrap.first << ":" << params.bootstrap.second << std::endl;
node->bootstrap(params.bootstrap.first.c_str(), params.bootstrap.second.c_str()); node->bootstrap(params.bootstrap.first.c_str(), params.bootstrap.second.c_str());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment