Adding executor description for verbose output, adding output directory for build artifacts

This commit is contained in:
Ian Roddis
2022-01-07 14:37:06 -04:00
parent 856e5bd2f4
commit 4da78c9dd6
12 changed files with 61 additions and 3 deletions

View File

@@ -270,11 +270,15 @@ int main(int argc, char **argv)
doc.SetObject();
}
auto logger = loggerFactory(doc);
auto executor = executorFactory(doc);
if (verbose) {
std::cout << "Server running at http://" << listenIP << ':' << listenPort
<< std::endl
<< "Max DAG Processing: " << dagThreads << std::endl
<< "Max Web Clients: " << webThreads << std::endl
<< "Executor: " << executor->description() << std::endl
<< std::endl
<< "Ctrl-C to exit" << std::endl;
}
@@ -283,9 +287,6 @@ int main(int argc, char **argv)
daemonize();
}
auto logger = loggerFactory(doc);
auto executor = executorFactory(doc);
Pistache::Address listenSpec(listenIP, listenPort);
daggy::daggyd::Server server(listenSpec, *logger, *executor, dagThreads);