Skip to content

Commit

Permalink
HPCC-31755 Soapcall LOG multi-line separator 3
Browse files Browse the repository at this point in the history
Signed-off-by: M Kelly <[email protected]>
  • Loading branch information
mckellyln committed Oct 8, 2024
1 parent 40f5f6d commit f247c05
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions common/thorhelper/thorsoapcall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ using roxiemem::OwnedRoxieString;
#define CONNECTION "Connection"

unsigned soapTraceLevel = 1;
StringBuffer soapSepString;
static StringBuffer soapSepString;
static CriticalSection soapCrit;

void setSoapSepString(StringBuffer &_soapSepString)
void setSoapSepString(const char *_soapSepString)
{
CriticalBlock b(soapCrit);
soapSepString.clear().append(_soapSepString);
soapSepString.set(_soapSepString);
}

static void multiLineAppendReplace(StringBuffer &origStr, StringBuffer &newStr)
Expand Down
2 changes: 1 addition & 1 deletion common/thorhelper/thorsoapcall.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ interface IRoxieAbortMonitor
extern THORHELPER_API unsigned soapTraceLevel;
extern THORHELPER_API IWSCHelper * createSoapCallHelper(IWSCRowProvider *, IEngineRowAllocator * outputAllocator, const char *authToken, SoapCallMode scMode, ClientCertificate *clientCert, const IContextLogger &logctx, IRoxieAbortMonitor * roxieAbortMonitor);
extern THORHELPER_API IWSCHelper * createHttpCallHelper(IWSCRowProvider *, IEngineRowAllocator * outputAllocator, const char *authToken, SoapCallMode scMode, ClientCertificate *clientCert, const IContextLogger &logctx, IRoxieAbortMonitor * roxieAbortMonitor);
extern THORHELPER_API void setSoapSepString(StringBuffer &_soapSepString);
extern THORHELPER_API void setSoapSepString(const char *_soapSepString);

#endif /* __THORSOAPCALL_HPP_ */
2 changes: 1 addition & 1 deletion ecl/hthor/hthor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7741,7 +7741,7 @@ void CHThorWSCBaseActivity::init()
StringBuffer soapSepStr;
StringBufferAdaptor soapSepAdaptor(soapSepStr);
agent.queryWorkUnit()->getDebugValue("soapLogSepString", soapSepAdaptor);
setSoapSepString(soapSepStr);
setSoapSepString(soapSepStr.str());
}

//---------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion roxie/ccd/ccdmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ int CCD_API roxie_main(int argc, const char *argv[], const char * defaultYaml)
{
StringBuffer tmpSepString;
topology->getProp("@soapLogSepString", tmpSepString);
setSoapSepString(tmpSepString);
setSoapSepString(tmpSepString.str());
}
miscDebugTraceLevel = topology->getPropInt("@miscDebugTraceLevel", 0);
traceRemoteFiles = topology->getPropBool("@traceRemoteFiles", false);
Expand Down
2 changes: 1 addition & 1 deletion roxie/ccd/ccdstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2931,7 +2931,7 @@ class CRoxiePackageSetManager : implements IRoxieQueryPackageManagerSet, impleme
{
StringBuffer tmpSepString;
control->getProp("@string", tmpSepString);
setSoapSepString(tmpSepString);
setSoapSepString(tmpSepString.str());
}
}
else if (stricmp(queryName, "control:socketCheckInterval")==0)
Expand Down
2 changes: 1 addition & 1 deletion thorlcr/graph/thgraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2752,7 +2752,7 @@ void CJobBase::init()
soapTraceLevel = getOptInt(THOROPT_SOAP_TRACE_LEVEL, 1);
StringBuffer tmpSepString;
getOpt(THOROPT_SOAP_LOG_SEP_STRING, tmpSepString);
setSoapSepString(tmpSepString);
setSoapSepString(tmpSepString.str());

StringBuffer tracing("maxActivityCores = ");
if (maxActivityCores)
Expand Down

0 comments on commit f247c05

Please sign in to comment.