skip log empty message

This commit is contained in:
conicliu 2024-02-19 16:11:42 +08:00
parent 6463863271
commit b38ad8297c

View File

@ -701,7 +701,9 @@ void DataPartStorageOnDiskBase::remove(
if (file_name.starts_with(proj_dir_name))
files_not_to_remove_for_projection.emplace(fs::path(file_name).filename());
LOG_DEBUG(log, "Will not remove files [{}] for projection {}", fmt::join(files_not_to_remove_for_projection, ", "), projection.name);
if (!files_not_to_remove_for_projection.empty())
LOG_DEBUG(
log, "Will not remove files [{}] for projection {}", fmt::join(files_not_to_remove_for_projection, ", "), projection.name);
CanRemoveDescription proj_description
{