Skip to content

Commit

Permalink
Silence file closuring printouts in StatisticsSenderService by default
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Dec 9, 2021
1 parent 8bece6a commit f5c155f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Utilities/StorageFactory/src/StatisticsSenderService.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit f5c155f

Please sign in to comment.