From 6272de184c574bc264c3ef1680e29f9b7b65393e Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 15 Jul 2026 12:18:35 +0200 Subject: [PATCH] Add debug prints for logs init for console issues troubleshooting --- Source/Engine/Core/Log.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/Engine/Core/Log.cpp b/Source/Engine/Core/Log.cpp index 1520ad57c..fe1ae1384 100644 --- a/Source/Engine/Core/Log.cpp +++ b/Source/Engine/Core/Log.cpp @@ -54,6 +54,9 @@ bool Log::Logger::Init() #endif if (FileSystem::CreateDirectory(logsDirectory)) { +#if !BUILD_RELEASE + Platform::Log(String(TEXT("Failed to create logs directory: ")) + logsDirectory); +#endif return true; } @@ -90,8 +93,14 @@ bool Log::Logger::Init() LogFile = FileWriteStream::Open(LogFilePath); if (LogFile == nullptr) { +#if !BUILD_RELEASE + Platform::Log(String(TEXT("Failed to create log file: ")) + LogFilePath); +#endif return true; } +#if !BUILD_RELEASE && PLATFORM_CONSOLE + Platform::Log(String(TEXT("Log file: ")) + LogFilePath); +#endif LogTotalErrorsCnt = 0; LogAfterInit = true; #if LOG_ENABLE_WINDOWS_SINGLE_NEW_LINE_CHAR