From 1d8c0c6c71a7ac2b1142200e5cecf6124a522d09 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Thu, 19 Apr 2007 13:24:34 +0000 Subject: [PATCH] Merged from head: 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