Browse Source

Merge pull request #13214 from wangkx/h23204

HPCC-23204 Do not add extra line to ZAP eclagent log file

Reviewed-By: Jake Smith <jake.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 5 years ago
parent
commit
b9a9bbf530
1 changed files with 1 additions and 1 deletions
  1. 1 1
      esp/services/ws_workunits/ws_workunitsHelpers.cpp

+ 1 - 1
esp/services/ws_workunits/ws_workunitsHelpers.cpp

@@ -1960,7 +1960,7 @@ void WsWuInfo::getWorkunitEclAgentLog(const char* fileName, const char* agentPid
         }
         }
     }
     }
 
 
-    if (buf.length() < 1)
+    if (!wuidFound)
     {
     {
         const char * msg = "(No logfile entries found for this workunit)";
         const char * msg = "(No logfile entries found for this workunit)";
         outputALine(strlen(msg), msg, buf, outIOS);
         outputALine(strlen(msg), msg, buf, outIOS);