Skip to content

Commit

Permalink
Merge pull request #1141 from LLNL/bugfix/han12/parallel_streams_flush
Browse files Browse the repository at this point in the history
Add flush call to parallel logStreams
  • Loading branch information
bmhan12 committed Jul 19, 2023
2 parents c9d402d + 6037800 commit e809258
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/axom/slic/streams/LumberjackStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ void LumberjackStream::write(bool local)
messages[i]->lineNumber());
}

m_stream->flush();
m_lj->clearMessages();
}
}
Expand Down
1 change: 1 addition & 0 deletions src/axom/slic/streams/SynchronizedStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ struct SynchronizedStream::MessageCache
(*stream) << messages[i];
} // END for all messages

stream->flush();
messages.clear();
}
};
Expand Down

0 comments on commit e809258

Please sign in to comment.