diff --git a/sources/main.cpp b/sources/main.cpp index 7041c2ae..5757b0f2 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -103,7 +103,6 @@ static void execSimulation(boost::shared_ptr context, dfl::inputs: LOG(info, InitEnd, elapsed(params.timeStart)); auto timeFilesStart = std::chrono::steady_clock::now(); context->exportOutputs(); - DYN::Trace::resetPersistentCustomAppender(dfl::common::Log::getTag(), DYN::DEBUG); // to force flush to DynaFlowLauncher.log LOG(info, FilesEnd, elapsed(timeFilesStart)); DYNAlgorithms::multiprocessing::Context::sync(); @@ -144,6 +143,8 @@ static void execSimulation(boost::shared_ptr context, dfl::inputs: void dumpZipArchive(std::unordered_map &mapOutputFilesData, boost::filesystem::path outputPath, const dfl::common::Options::RuntimeConfiguration &runtimeConfig) { DYNAlgorithms::multiprocessing::Context &mpiContext = DYNAlgorithms::multiprocessing::context(); + DYN::Trace::resetPersistentCustomAppender(dfl::common::Log::getTag(), + DYN::Trace::severityLevelFromString(runtimeConfig.dynawoLogLevel)); // to force flush to DynaFlowLauncher.log mpiContext.sync(); if (mpiContext.isRootProc()) { bool outputIsZip = !runtimeConfig.zipArchivePath.empty();