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));
@@ -161,7 +161,7 @@ namespace Multiplayer
networkInterface->Listen(sv_port);
AZLOG_INFO("Editor Server completed receiving the editor's level assets, responding to Editor...\n")
AZLOG_INFO("Editor Server completed receiving the editor's level assets, responding to Editor...")
return connection->SendReliablePacket(MultiplayerEditorPackets::EditorServerReady());
}
@@ -857,7 +857,7 @@ namespace Multiplayer
EnableAutonomousControl(controlledEntity, AzNetworking::InvalidConnectionId);
}
AZLOG_INFO("Multiplayer operating in %s mode\n", GetEnumString(m_agentType));
AZLOG_INFO("Multiplayer operating in %s mode", GetEnumString(m_agentType));
}
void MultiplayerSystemComponent::AddClientMigrationStartEventHandler(ClientMigrationStartEvent::Handler& handler)