Fixing problem with FileIO (exception in Environment.h)

Signed-off-by: Dayo Lawal <lawalfua@amazon.com>
This commit is contained in:
Dayo Lawal
2021-06-21 18:01:16 -05:00
committed by Dayo Lawal
parent df18e53ab4
commit b365f8bddf
3 changed files with 11 additions and 9 deletions
@@ -16,7 +16,6 @@
#include <AzFramework/StringFunc/StringFunc.h>
#include <AzFramework/Logging/LogFile.h>
namespace AzQtComponents
{
class AzQtTraceLogger::Impl : public AZ::Debug::TraceMessageBus::Handler
@@ -78,11 +77,13 @@ namespace AzQtComponents
void AzQtTraceLogger::Impl::WriteStartupLog(char name[])
{
using namespace AzFramework;
std::string temp = name;
//using namespace AzFramework;
///*
AZ::IO::FileIOBase* fileIO = AZ::IO::FileIOBase::GetInstance();
AZ_Assert(fileIO != nullptr, "FileIO should be running at this point");
/*
// There is no log system online so we have to create your own log file.
char resolveBuffer[AZ_MAX_PATH_LEN] = { 0 };
fileIO->ResolvePath("@user@", resolveBuffer, AZ_MAX_PATH_LEN);
@@ -110,5 +111,6 @@ namespace AzQtComponents
m_startupLogSink = {};
m_logFile->FlushLog();
}
*/
}
} // namespace AzQtComponents