Skip to content
Snippets Groups Projects
Commit c127db10 authored by Eric Cano's avatar Eric Cano
Browse files

#129 Added display of report URL in case of error in migration report packer.

parent 1c39dbfc
No related branches found
No related tags found
No related merge requests found
......@@ -163,9 +163,9 @@ void MigrationReportPacker::ReportFlush::execute(MigrationReportPacker& reportPa
if (!job.get()) continue;
cta::log::ScopedParamContainer params(reportPacker.m_lc);
params.add("fileId", job->archiveFile.archiveFileID)
.add("diskInstance", job->archiveFile.diskInstance)
.add("diskFileId", job->archiveFile.diskFileId)
.add("lastKnownDiskPath", job->archiveFile.diskFileInfo.path);
.add("diskInstance", job->archiveFile.diskInstance)
.add("diskFileId", job->archiveFile.diskFileId)
.add("lastKnownDiskPath", job->archiveFile.diskFileInfo.path);
if (job->complete()) {
params.add("reportURL", job->reportURL());
reportPacker.m_lc.log(cta::log::INFO,"Reported to the client a full file archival");
......@@ -182,7 +182,8 @@ void MigrationReportPacker::ReportFlush::execute(MigrationReportPacker& reportPa
params.add("fileId", job->archiveFile.archiveFileID)
.add("diskInstance", job->archiveFile.diskInstance)
.add("diskFileId", job->archiveFile.diskFileId)
.add("lastKnownDiskPath", job->archiveFile.diskFileInfo.path);
.add("lastKnownDiskPath", job->archiveFile.diskFileInfo.path)
.add("reportURL", job->reportURL());
}
const std::string msg_error="An exception was caught trying to call reportMigrationResults";
reportPacker.m_lc.log(cta::log::ERR, msg_error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment