Properly adding newlines when using LogInternalV; removing the need of hand-placed newlines to AZ_LOG

Signed-off-by: Gene Walters <genewalt@amazon.com>
This commit is contained in:
Gene Walters
2021-12-07 14:53:59 -08:00
parent 9ae3da7acd
commit b123379380
4 changed files with 4 additions and 4 deletions
@@ -120,8 +120,8 @@ namespace AZ
{
constexpr AZStd::size_t MaxLogBufferSize = 1000;
auto buffer = AZStd::fixed_string<MaxLogBufferSize>::format_arg(format, args);
m_logEvent.Signal(level, buffer.c_str(), file, function, line);
buffer += '\n';
switch (level)
{
@@ -92,7 +92,7 @@ namespace AzNetworking
return InvalidConnectionId;
}
AZLOG_INFO("Adding new socket %d\n", static_cast<int32_t>(tcpSocket->GetSocketFd()));
AZLOG_INFO("Adding new socket %d", static_cast<int32_t>(tcpSocket->GetSocketFd()));
connection->SendReliablePacket(CorePackets::InitiateConnectionPacket());
m_connectionListener.OnConnect(connection.get());
m_connectionSet.AddConnection(AZStd::move(connection));