Skip to content

Commit

Permalink
common/logger: copy buffer properties when creating a copy of a logger
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-iob committed Feb 10, 2022
1 parent d5fd73a commit 2ac2ad6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/common/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,11 @@ Logger::Logger(const Logger &other)
m_fileDisabledThreshold(other.m_fileDisabledThreshold),
m_fileVerbosityThreshold(other.m_fileVerbosityThreshold)
{
// Copy buffer properties
copyfmt(other);
exceptions(other.exceptions());
clear(other.rdstate());
basic_ios<char>::rdbuf(other.rdbuf());
}

/*!
Expand Down

0 comments on commit 2ac2ad6

Please sign in to comment.