client: add log msgs for failed file deletion

This commit is contained in:
David Anderson 2015-05-04 01:04:40 -07:00
parent 9b1f0e8574
commit 02c848df4b
2 changed files with 12 additions and 0 deletions

View File

@ -571,6 +571,12 @@ int ACTIVE_TASK::get_free_slot(RESULT* rp) {
if (is_dir(path)) {
retval = client_clean_out_dir(path, "get_free_slot()");
if (!retval) break;
if (log_flags.slot_debug) {
msg_printf(rp->project, MSG_INFO,
"[slot] failed to clean out dir: %s",
boincerror(retval)
);
}
}
} else {
retval = make_slot_dir(j);

View File

@ -271,6 +271,12 @@ int delete_project_owned_file(const char* path, bool retry) {
} while (dtime() < start + FILE_RETRY_INTERVAL);
}
if (retval) {
if (log_flags.slot_debug) {
msg_printf(0, MSG_INFO,
"[slot] failed to remove file %s: %s",
path, boincerror(retval)
);
}
safe_strcpy(boinc_failed_file, path);
return ERR_UNLINK;
}