From 7f04373961880aa33ca10b821d8a57dea74a50d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Fri, 13 Apr 2007 14:57:32 +0000 Subject: [PATCH] Print only warning when not purging jobs not matching running LB server or port --- org.glite.lb.server/src/srv_purge.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/org.glite.lb.server/src/srv_purge.c b/org.glite.lb.server/src/srv_purge.c index d7ce6fe..5efad98 100644 --- a/org.glite.lb.server/src/srv_purge.c +++ b/org.glite.lb.server/src/srv_purge.c @@ -330,10 +330,18 @@ abort: if (parse && !edg_wll_Error(ctx,NULL,NULL)) { - if ( naffected_jobs ) - edg_wll_SetError(ctx,EINVAL,"Invalid JobId(s) but other jobs purged"); - else - edg_wll_SetError(ctx,EINVAL,"Invalid JobId(s)"); + if ( naffected_jobs ) { + fprintf(stderr,"[%d] Found some jobs not matching server address/port;"\ + " these were not purged but other jobs purged.\n", getpid()); + syslog(LOG_INFO,"Found some jobs not matching server address/port;"\ + " these were not purged but other jobs purged"); + } + else { + fprintf(stderr,"[%d] Found only jobs not matching server address/port;"\ + " these were not purged.\n", getpid()); + syslog(LOG_INFO,"Found only jobs not matching server address/port;"\ + " these were not purged."); + } } switch ( edg_wll_Error(ctx,NULL,NULL) ) -- 1.8.2.3