Reduced redundant verbosity in debug mode

svn path=/trunk/boinc/; revision=5453
This commit is contained in:
Bruce Allen 2005-02-17 03:17:49 +00:00
parent 1e2c3e1266
commit bc7a5cf597
1 changed files with 7 additions and 5 deletions

View File

@ -518,12 +518,14 @@ bool do_pass() {
}
log_messages.printf(SCHED_MSG_LOG::NORMAL,
"Archived %d workunits and %d results\n",
do_pass_purged_workunits,do_pass_purged_results
);
if (do_pass_purged_workunits) {
log_messages.printf(SCHED_MSG_LOG::NORMAL,
"Archived %d workunits and %d results\n",
do_pass_purged_workunits,do_pass_purged_results
);
}
if (wu_stored_in_file>0) {
if (did_something && wu_stored_in_file>0) {
log_messages.printf(SCHED_MSG_LOG::DEBUG,
"Currently open archive files contain %d workunits\n",
wu_stored_in_file);