diff --git a/runtime/compiler/control/JITClientCompilationThread.cpp b/runtime/compiler/control/JITClientCompilationThread.cpp index 79456ffa8af..a1fbabc0e33 100644 --- a/runtime/compiler/control/JITClientCompilationThread.cpp +++ b/runtime/compiler/control/JITClientCompilationThread.cpp @@ -3763,6 +3763,10 @@ remoteCompile(J9VMThread *vmThread, TR::Compilation *compiler, TR_ResolvedMethod if (compiler->getOption(TR_JITServerFollowRemoteCompileWithLocalCompile) && compilationSequenceNumber) { compiler->getOptions()->setLogFileForClientOptions(compilationSequenceNumber); + auto logFile = compiler->getOptions()->getLogFile(); + auto debug = compiler->getDebug(); + if (logFile && debug) + debug->setFile(logFile); bool compileWithoutVMAccess = !compiler->getOption(TR_DisableNoVMAccess); if (compileWithoutVMAccess) {