Merge pull request #60123 from conicl/skip_log_empty_message

skip printing meaningless log
This commit is contained in:
Alexey Milovidov 2024-02-21 09:02:26 +01:00 committed by GitHub
commit c9686eb76c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
{