reset ostream flags when done

This commit is contained in:
2021-11-19 16:16:48 +01:00
committed by mdavidsaver
parent 284de4fb6b
commit ec85ffc3d0
4 changed files with 12 additions and 3 deletions

View File

@@ -3000,8 +3000,10 @@ public:
if (command < 0 || command >= (int8)m_handlerTable.size())
{
if(IS_LOGGABLE(logLevelError)) {
std::ios::fmtflags initialflags = std::cerr.flags();
std::cerr<<"Invalid (or unsupported) command: "<<std::hex<<(int)(0xFF&command)<<"\n"
<<HexDump(*payloadBuffer, payloadSize).limit(256u);
std::cerr.flags(initialflags);
}
return;
}