Skip to content

Commit

Permalink
HPCC-33274 Prevent LogAccess query if not requested by ZAP
Browse files Browse the repository at this point in the history
- Checks includeRelatedLogs and or includePerComponentLogs before generating logs

Signed-off-by: Rodrigo Pastrana <rodrigo.pastrana@lexisnexisrisk.com>
  • Loading branch information
rpastrana committed Jan 17, 2025
1 parent aa8db25 commit 8359b81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esp/services/ws_workunits/ws_workunitsHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8359b81

Please sign in to comment.