Commit 57043bdc authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

uploading fix to log queue



Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 31169c9b
......@@ -299,6 +299,7 @@ void clearOptions() {
* be called after using the XACC API.
*/
void Finalize() {
XACCLogger::instance()->dumpQueue();
info("");
info("[xacc::plugins] Cleaning up Plugin Registry.");
xacc::ServiceRegistry::instance()->destroy();
......
......@@ -84,6 +84,7 @@ public:
variables_map clArgs;
store(parse_command_line(argc, argv, *xaccOptions.get()), clArgs);
if (clArgs.count("help")) {
XACCLogger::instance()->dumpQueue();
std::cout << *xaccOptions.get() << "\n";
XACCLogger::instance()->info(
"\n[xacc] XACC Finalizing\n[xacc::compiler] Cleaning up Compiler Registry."
......@@ -118,6 +119,7 @@ public:
}
if (listTypes) {
XACCLogger::instance()->dumpQueue();
XACCLogger::instance()->info(
"\n[xacc] XACC Finalizing\n[xacc::compiler] Cleaning up Compiler Registry."
"\n[xacc::accelerator] Cleaning up Accelerator Registry.");
......@@ -126,6 +128,7 @@ public:
auto exitRequested = ServiceRegistry::instance()->handleOptions(clArgs);
if (exitRequested) {
XACCLogger::instance()->dumpQueue();
XACCLogger::instance()->info(
"\n[xacc] XACC Finalizing\n[xacc::compiler] Cleaning up Compiler Registry."
"\n[xacc::accelerator] Cleaning up Accelerator Registry.");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment