From: Jiří Škrábal Date: Thu, 3 Mar 2005 11:56:48 +0000 (+0000) Subject: - redundant '\n' characters in *Proxy logging calls removed X-Git-Tag: glite-deployment-lb_R_1_1_1~36 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=38f418e087622f7aff86b0d9f6e4807b18d9d3b5;p=jra1mw.git - redundant '\n' characters in *Proxy logging calls removed --- 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);