mirror of https://github.com/BOINC/boinc.git
client: add log msgs for failed file deletion
This commit is contained in:
parent
9b1f0e8574
commit
02c848df4b
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue