From 2e4989c238e5afd0c00ed1e416c2fffbcd705cbd Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Thu, 28 Jul 2005 09:48:12 +0000 Subject: [PATCH] Better logging svn path=/trunk/boinc/; revision=6865 --- sched/sched_send.C | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sched/sched_send.C b/sched/sched_send.C index 2a01fe622a..00a5c8b24a 100644 --- a/sched/sched_send.C +++ b/sched/sched_send.C @@ -1018,6 +1018,7 @@ bool resend_lost_work(SCHEDULER_REQUEST& sreq, SCHEDULER_REPLY& reply) { unsigned int i; char buf[256]; bool did_any = false; + int num_to_resend=0; // look at other results. for now just print // @@ -1041,14 +1042,21 @@ bool resend_lost_work(SCHEDULER_REQUEST& sreq, SCHEDULER_REPLY& reply) { } } if (!found) { + num_to_resend++; log_messages.printf( SCHED_MSG_LOG::DEBUG, - "[HOST#%d] Would resend lost result: %s\n", - reply.host.id, result.name + "[HOST#%d] Would resend lost [RESULT#%d]: %s\n", + reply.host.id, result.id, result.name ); did_any = true; } } + if (num_to_resend) { + log_messages.printf(SCHED_MSG_LOG::DEBUG, + "[HOST#%d] Would resend %d lost results\n", reply.host.id, num_to_resend + ); + } + return false; //return did_any; }