diff --git a/esp/services/ws_workunits/ws_workunitsHelpers.cpp b/esp/services/ws_workunits/ws_workunitsHelpers.cpp index 1d41299a487..7ccf413709d 100644 --- a/esp/services/ws_workunits/ws_workunitsHelpers.cpp +++ b/esp/services/ws_workunits/ws_workunitsHelpers.cpp @@ -4543,7 +4543,8 @@ void CWsWuFileHelper::createWUZAPFile(IEspContext& context, IConstWorkUnit* cwu, if (request.includeThorSlaveLog.isEmpty() || strieq(request.includeThorSlaveLog.str(), "on")) createThorSlaveLogfile(cwu, winfo, tempDirName); #else - readWULogToFiles(cwu, winfo, tempDirName, request); + if (request.includeRelatedLogs || request.includePerComponentLogs) + readWULogToFiles(cwu, winfo, tempDirName, request); #endif //Write out to ZIP file