From 02c848df4bf68b73b815b3c04d7591a021cb1e50 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 4 May 2015 01:04:40 -0700 Subject: [PATCH] client: add log msgs for failed file deletion --- client/app.cpp | 6 ++++++ client/sandbox.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/client/app.cpp b/client/app.cpp index 7b8e10c3b2..b8dfefd79a 100644 --- a/client/app.cpp +++ b/client/app.cpp @@ -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); diff --git a/client/sandbox.cpp b/client/sandbox.cpp index 5a3191739b..3caa6b571a 100644 --- a/client/sandbox.cpp +++ b/client/sandbox.cpp @@ -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; }