From 38f418e087622f7aff86b0d9f6e4807b18d9d3b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20=C5=A0kr=C3=A1bal?= Date: Thu, 3 Mar 2005 11:56:48 +0000 Subject: [PATCH] - redundant '\n' characters in *Proxy logging calls removed --- org.glite.lb.client/src/producer.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.client/src/producer.c b/org.glite.lb.client/src/producer.c index d79500f..57789b5 100644 --- a/org.glite.lb.client/src/producer.c +++ b/org.glite.lb.client/src/producer.c @@ -199,7 +199,7 @@ static int edg_wll_DoLogEventProxy( edg_wll_SetError(context,answer = ENOMEM,"edg_wll_LogEventMasterProxy(): asprintf() error"); goto edg_wll_DoLogEventProxy_end; } - if (asprintf(&out,"%s%s\n",dguser,logline) == -1) { + if (asprintf(&out,"%s%s",dguser,logline) == -1) { edg_wll_SetError(context,answer = ENOMEM,"edg_wll_LogEventMasterProxy(): asprintf() error"); goto edg_wll_DoLogEventProxy_end; } @@ -778,7 +778,10 @@ static int edg_wll_RegisterJobMaster( goto edg_wll_registerjobmaster_end; } /* SetLoggingJobProxy and and log to proxy */ - if (edg_wll_SetLoggingJobProxy(context,job,NULL,user_dn,EDG_WLL_SEQ_NORMAL) == 0) { + edg_wll_SetSequenceCode(context, NULL, EDG_WLL_SEQ_NORMAL); + if (seq) free(seq); + seq = edg_wll_GetSequenceCode(context); + if (edg_wll_SetLoggingJobProxy(context,job,seq,user_dn,EDG_WLL_SEQ_NORMAL) == 0) { edg_wll_LogEventMaster(context,LOGFLAG_PROXY | LOGFLAG_SYNC, EDG_WLL_EVENT_REGJOB,EDG_WLL_FORMAT_REGJOB, (char *)jdl,ns,parent_s,type_s,num_subjobs,intseed); -- 1.8.2.3