Ver código fonte

HPCC-23025 Don't trace values written to workunit variables

Temporary values stored in Workunit variables may contain sensitive
information - there's no real benefit to outputting them in the tracing and it
can cause some grief.

Note that temporaries are deleted from the workunit at the end of the job and
so cannot be observed in the workunit XML either.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 5 anos atrás
pai
commit
786307739a
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      ecl/eclagent/eclagent.cpp

+ 1 - 1
ecl/eclagent/eclagent.cpp

@@ -1119,7 +1119,7 @@ void EclAgent::setResultData(const char * stepname, unsigned sequence, int len,
 
 void EclAgent::doSetResultString(type_t type, const char *name, unsigned sequence, int len, const char *val)
 {
-    LOG(MCsetresult, unknownJob, "setResultString(%s,%d,'%.*s')", nullText(name), sequence, len, val);
+    LOG(MCsetresult, unknownJob, "setResultString(%s,%d,(%d bytes))", nullText(name), sequence, len);
     WorkunitUpdate w = updateWorkUnit();
     Owned<IWUResult> r = updateWorkUnitResult(w, name, sequence);
     if (r)