Commit d17483c0 authored by Eric Cano's avatar Eric Cano
Browse files

Added extra information in logs.

- when failing to schedule.
- now list which drive has an existing mount (at schedule time as well.
parent 0dd26b02
......@@ -454,7 +454,8 @@ std::unique_ptr<TapeMount> Scheduler::getNextMount(const std::string &logicalLib
tapesInUse.insert(em.vid);
log::ScopedParamContainer params(lc);
params.add("vid", em.vid)
.add("mountType", common::dataStructures::toString(em.type));
.add("mountType", common::dataStructures::toString(em.type))
.add("drive", em.driveName);
lc.log(log::DEBUG,"In Scheduler::getNextMount(): tapeAlreadyInUse found.");
}
}
......
......@@ -133,7 +133,8 @@ schedule:
} catch (cta::exception::Exception & e) {
cta::log::ScopedParamContainer localParams(lc);
localParams.add("errorMessage", e.getMessageValue());
lc.log(cta::log::ERR, "Error while scheduling new mount. Putting the drive down.");
lc.log(cta::log::ERR, "Error while scheduling new mount. Putting the drive down. Stack trace follows.");
lc.logBacktrace(cta::log::ERR, e.backtrace());
m_scheduler.reportDriveStatus(m_driveInfo, cta::common::dataStructures::MountType::NoMount, cta::common::dataStructures::DriveStatus::Down);
cta::common::dataStructures::SecurityIdentity cliId;
m_scheduler.setDesiredDriveState(cliId, m_driveConfig.unitName, false, false);
......
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