From 6264c6dc119f13ba5af8fc4146c97eb0041f1a49 Mon Sep 17 00:00:00 2001 From: Howard Soh Date: Mon, 29 Jan 2024 23:23:44 +0000 Subject: [PATCH] Added log message if the temprary fiule was not deleted --- src/basic/vx_config/temp_file.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/basic/vx_config/temp_file.cc b/src/basic/vx_config/temp_file.cc index f1ed751190..85d5528a49 100644 --- a/src/basic/vx_config/temp_file.cc +++ b/src/basic/vx_config/temp_file.cc @@ -73,6 +73,8 @@ void remove_temp_file(const ConcatString file_name) { const char *keep_temp = getenv("MET_KEEP_TEMP_FILE"); if (nullptr != keep_temp && (0 == strcmp(keep_temp, "true") || 0 == strcmp(keep_temp, "yes"))) { + mlog << Debug(2) << "The temporary file (" + << file_name << ") was not deleted. Please remove it manually\n\n"; return; }