diff --git a/src/Storages/MergeTree/MergeTreeData.cpp b/src/Storages/MergeTree/MergeTreeData.cpp index 8419f07ae73..42b26db72ce 100644 --- a/src/Storages/MergeTree/MergeTreeData.cpp +++ b/src/Storages/MergeTree/MergeTreeData.cpp @@ -2967,11 +2967,11 @@ void MergeTreeData::tryRemovePartImmediately(DataPartPtr && part) if (!((*it)->getState() == DataPartState::Outdated && it->unique())) { if ((*it)->getState() != DataPartState::Outdated) - LOG_WARNING("Cannot immediately remove part {} because it's not in Outdated state " + LOG_WARNING(log, "Cannot immediately remove part {} because it's not in Outdated state " "usage counter {}", part_name_with_state, it->use_count()); if (!it->unique()) - LOG_WARNING("Cannot immediately remove part {} because someone using it right now " + LOG_WARNING(log, "Cannot immediately remove part {} because someone using it right now " "usage counter {}", part_name_with_state, it->use_count()); return; }