From 6ab214adea20f56cb1cb724b32fb84ffc2eed748 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Wed, 1 Jan 2025 10:00:22 -0800 Subject: [PATCH] FEXLoader: Enable early logs output to stderr Some early FEXServer startup log failures weren't getting printed correctly. They were going through the LogManager but before FEXServer setup, or even stderr/stdout logman setup. So they were just getting written to -1 and failing. Fixes #4155 --- Source/Tools/FEXLoader/FEXLoader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Tools/FEXLoader/FEXLoader.cpp b/Source/Tools/FEXLoader/FEXLoader.cpp index 60a8c49936..fc4d1acce9 100644 --- a/Source/Tools/FEXLoader/FEXLoader.cpp +++ b/Source/Tools/FEXLoader/FEXLoader.cpp @@ -64,8 +64,8 @@ desc: Glues the ELF loader, FEXCore and LinuxSyscalls to launch an elf under fex #include namespace { -static bool SilentLog; -static int OutputFD {-1}; +static bool SilentLog {}; +static int OutputFD {STDERR_FILENO}; void MsgHandler(LogMan::DebugLevels Level, const char* Message) { if (SilentLog) {