Skip to content

Commit b9b3e2e

Browse files
committed
report filenames for xrootd debug output in FileFetcher
1 parent c4f4a41 commit b9b3e2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Common/Utils/src/FileFetcher.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ bool FileFetcher::copyFile(size_t id)
345345
gSystem->Setenv("XRD_LOGLEVEL", "Dump");
346346
logsToClean.push_back(fmt::format("log_xrd_{}.txt", uuid));
347347
gSystem->Setenv("XRD_LOGFILE", logsToClean.back().c_str());
348+
LOGP(info, "debug log files for {}: ALIENPY_DEBUG_FILE={} XRD_LOGFILE={}", mInputFiles[id].getOrigName(),
349+
getenv("ALIENPY_DEBUG_FILE") ? getenv("ALIENPY_DEBUG_FILE") : "",
350+
getenv("XRD_LOGFILE") ? getenv("XRD_LOGFILE") : "");
348351
}
349352
auto realCmd = std::regex_replace(std::regex_replace(mCopyCmd, std::regex(R"(\?src)"), mInputFiles[id].getOrigName()), std::regex(R"(\?dst)"), mInputFiles[id].getLocalName());
350353
auto fullCmd = fmt::format(R"(sh -c "{}" >> {} 2>&1)", realCmd, mCopyCmdLogFile);

0 commit comments

Comments
 (0)