From b67325afa76d7989f16d8b5e85e5d42169f0723c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Filipovi=C4=8D?= Date: Thu, 31 May 2012 11:57:40 +0000 Subject: [PATCH] - do not log unnecessary events --- org.glite.lb.client/src/register_sandbox.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/org.glite.lb.client/src/register_sandbox.c b/org.glite.lb.client/src/register_sandbox.c index 9947719..9064be0 100644 --- a/org.glite.lb.client/src/register_sandbox.c +++ b/org.glite.lb.client/src/register_sandbox.c @@ -106,7 +106,8 @@ int main(int argc,char **argv) } if (!jobid_s || type == EDG_WLL_SANDBOX_SANDBOX_TYPE_UNDEFINED - || !from || !to) + || (nsubjobs==0 && (!from || !to)) + || (nsubjobs>0 && ((!from && to) || (from && !to)))) { usage(argv[0]); exit(1); @@ -142,7 +143,7 @@ int main(int argc,char **argv) "n/a","n/a", nsubjobs,NULL,&subjobs)); - if (nsubjobs == 0) { + if (from && to) { check_log(edg_wll_LogFileTransferRegister,ftjobid_s,(ctx,from,to)); } else { @@ -182,20 +183,17 @@ int main(int argc,char **argv) free(ftsubjobid_s); } - edg_wll_SetLoggingJob(ctx,ftjobid,NULL,EDG_WLL_SEQ_NORMAL); + /*edg_wll_SetLoggingJob(ctx,ftjobid,NULL,EDG_WLL_SEQ_NORMAL); check_log(edg_wll_RegisterFTSubjobs, ftjobid_s, ( ctx, ftjobid, "NS", nsubjobs, subjobs - )); + ));*/ for (i=0; subjobs[i]; i++) { char *ftsubjobid_s = edg_wlc_JobIdUnparse(subjobs[i]); edg_wll_SetLoggingJob(ctx, subjobs[i], NULL, EDG_WLL_SEQ_NORMAL); - check_log(edg_wll_LogFileTransferRegister, ftsubjobid_s,( - ctx, from, to - )); check_log(edg_wll_LogSandbox, ftsubjobid_s, ( ctx, edg_wll_SandboxSandbox_typeToString(type), -- 1.8.2.3