Skip to content

Commit 4188997

Browse files
authored
Merge pull request #47840 from makortel/urlOpenMessage
Add a log message for URLs the XrdAdaptor opens
2 parents 15816e8 + 2119a39 commit 4188997

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Utilities/XrdAdaptor/src/XrdRequestManager.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,13 @@ bool RequestManager::compareSources(const timespec &now,
406406
std::string hostname_a;
407407
Source::getHostname(activeSources[a]->ID(), hostname_a);
408408
if (quality_a > 5130) {
409-
edm::LogWarning("XrdAdaptorLvl3") << "Deactivating " << hostname_a << " from active sources because the quality ("
409+
edm::LogFwkInfo("XrdAdaptorLvl3") << "Deactivating " << hostname_a << " from active sources because the quality ("
410410
<< quality_a << ") is above 5130 and it is not the only active server";
411411
}
412412
if ((quality_a > 260) && (quality_b * 4 < quality_a)) {
413413
std::string hostname_b;
414414
Source::getHostname(activeSources[b]->ID(), hostname_b);
415-
edm::LogWarning("XrdAdaptorLvl3") << "Deactivating " << hostname_a << " from active sources because its quality ("
415+
edm::LogFwkInfo("XrdAdaptorLvl3") << "Deactivating " << hostname_a << " from active sources because its quality ("
416416
<< quality_a
417417
<< ") is higher than 260 and 4 times larger than the other active server "
418418
<< hostname_b << " (" << quality_b << ") ";

Utilities/XrdAdaptor/src/XrdSource.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ Source::Source(timespec now, std::unique_ptr<XrdCl::File> fh, const std::string
194194
#endif
195195
{
196196
if (m_fh.get()) {
197+
std::string lastUrl;
198+
m_fh->GetProperty("LastURL", lastUrl);
199+
edm::LogFwkInfo("XrdAdaptor") << "Opened a file at URL " << lastUrl;
197200
if (!m_fh->GetProperty("DataServer", m_id)) {
198201
edm::LogWarning("XrdFileWarning") << "Source::Source() failed to determine data server name.'";
199202
}

0 commit comments

Comments
 (0)