Print only warning when not purging jobs not matching running LB server or port
authorMiloš Mulač <mulac@civ.zcu.cz>
Fri, 13 Apr 2007 14:57:32 +0000 (14:57 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Fri, 13 Apr 2007 14:57:32 +0000 (14:57 +0000)
org.glite.lb.server/src/srv_purge.c

index d7ce6fe..5efad98 100644 (file)
@@ -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) )