From 258971b30d4e134c60b37158b004956566dda32a Mon Sep 17 00:00:00 2001 From: Matti Kortelainen Date: Mon, 6 Dec 2021 19:17:51 +0100 Subject: [PATCH 1/2] Set RootInputFileSequence::usedFallback_ --- IOPool/Input/src/RootInputFileSequence.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IOPool/Input/src/RootInputFileSequence.cc b/IOPool/Input/src/RootInputFileSequence.cc index 553644e16b9e9..fd79067e52c63 100644 --- a/IOPool/Input/src/RootInputFileSequence.cc +++ b/IOPool/Input/src/RootInputFileSequence.cc @@ -234,6 +234,7 @@ namespace edm { lfn_ = logicalFileName().empty() ? fileNames()[0] : logicalFileName(); lfnHash_ = std::hash()(lfn_); + usedFallback_ = false; std::shared_ptr filePtr; std::list originalInfo; @@ -253,6 +254,7 @@ namespace edm { try { std::unique_ptr name(gSystem->ExpandPathName(it->c_str())); filePtr = std::make_shared(name.get(), " Initiating request to open file ", inputType); + usedFallback_ = (it != fNames.begin()); break; } catch (cms::Exception const& e) { if (!skipBadFiles && std::next(it) == fNames.end()) { From da2766a95d4cee43a646b74d802eb156f076b3bd Mon Sep 17 00:00:00 2001 From: Matti Kortelainen Date: Tue, 7 Dec 2021 21:49:00 +0100 Subject: [PATCH 2/2] Silence file closuring printouts in StatisticsSenderService by default --- .../StorageFactory/src/StatisticsSenderService.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Utilities/StorageFactory/src/StatisticsSenderService.cc b/Utilities/StorageFactory/src/StatisticsSenderService.cc index ea0a917eb0234..53f3b3437a582 100644 --- a/Utilities/StorageFactory/src/StatisticsSenderService.cc +++ b/Utilities/StorageFactory/src/StatisticsSenderService.cc @@ -297,10 +297,12 @@ void StatisticsSenderService::closedFile(std::string const &url, bool usedFallba } auto c = --found->second.m_openCount; - if (c == 0) { - edm::LogWarning("StatisticsSenderService") << "fully closed: " << *lfn << "\n"; - } else { - edm::LogWarning("StatisticsSenderService") << "partially closed: " << *lfn << "\n"; + if (m_debug) { + if (c == 0) { + edm::LogWarning("StatisticsSenderService") << "fully closed: " << *lfn << "\n"; + } else { + edm::LogWarning("StatisticsSenderService") << "partially closed: " << *lfn << "\n"; + } } } else if (m_debug) { edm::LogWarning("StatisticsSenderService") << "closed: unknown url name " << url << "\n";