Update aixlog to v1.5.1

This commit is contained in:
badaix 2025-01-23 09:53:01 +01:00
parent af636c3989
commit c1afc406dc

View file

@ -762,16 +762,15 @@ protected:
if (pos != std::string::npos) if (pos != std::string::npos)
{ {
result.replace(pos, 8, message); result.replace(pos, 8, message);
stream << result << "\n"; stream << result << std::endl;
} }
else else
{ {
if (result.empty() || (result.back() == ' ')) if (result.empty() || (result.back() == ' '))
stream << result << message << "\n"; stream << result << message << std::endl;
else else
stream << result << " " << message << "\n"; stream << result << " " << message << std::endl;
} }
stream.flush();
} }
std::string format_; std::string format_;