CR feedback

This commit is contained in:
karlberg
2021-05-07 10:03:07 -07:00
parent 05a39a4412
commit a8fa7a59d4
2 changed files with 4 additions and 3 deletions
@@ -127,7 +127,10 @@ namespace AZ
const AZStd::size_t length = azvsnprintf(buffer, MaxLogBufferSize, format, args);
buffer[AZStd::min<AZStd::size_t>(length + 1, MaxLogBufferSize - 1)] = '\0';
m_logEvent.Signal(level, buffer, file, function, line);
// Force a new-line before calling the AZ::Debug::Trace functions, as they assume a newline is present
buffer[AZStd::min<AZStd::size_t>(length + 1, MaxLogBufferSize - 2)] = '\n';
switch (level)
{
case LogLevel::Warn:
@@ -141,8 +144,6 @@ namespace AZ
AZ::Debug::Trace::Output("Logger", buffer);
break;
}
m_logEvent.Signal(level, buffer, file, function, line);
}
void LoggerSystemComponent::SetLevel(const AZ::ConsoleCommandContainer& arguments)
@@ -45,7 +45,7 @@ namespace AzFramework
virtual void OnTransformUpdated(AZ::Entity* entity) = 0;
protected:
virtual ~IEntityBoundsUnion() = default;
~IEntityBoundsUnion() = default;
};
// EBus wrapper for ScriptCanvas