Commit 2b3f2125 authored by Eric Cano's avatar Eric Cano
Browse files

Using exception message instead of stack trace in EOS error reporting.

parent 5a2aba11
......@@ -70,7 +70,7 @@ std::unique_ptr<cta::ArchiveJob> successfulArchiveJob, cta::log::LogContext & lc
void MigrationReportPacker::reportFailedJob(std::unique_ptr<cta::ArchiveJob> failedArchiveJob,
const cta::exception::Exception &ex, cta::log::LogContext & lc){
std::string failureLog = cta::utils::getCurrentLocalTime() + " " + cta::utils::getShortHostname() +
" " + ex.what();
" " + ex.getMessageValue();
std::unique_ptr<Report> rep(new ReportError(std::move(failedArchiveJob), failureLog));
cta::log::ScopedParamContainer params(lc);
params.add("type", "ReportError");
......
......@@ -72,7 +72,7 @@ void RecallReportPacker::reportCompletedJob(std::unique_ptr<cta::RetrieveJob> su
//------------------------------------------------------------------------------
void RecallReportPacker::reportFailedJob(std::unique_ptr<cta::RetrieveJob> failedRetrieveJob, const cta::exception::Exception & ex){
std::string failureLog = cta::utils::getCurrentLocalTime() + " " + cta::utils::getShortHostname() +
" " + ex.what();
" " + ex.getMessageValue();
std::unique_ptr<Report> rep(new ReportError(std::move(failedRetrieveJob), failureLog));
cta::threading::MutexLocker ml(m_producterProtection);
m_fifo.push(rep.release());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment