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

Added mount Id logging to end of session log.

parent 8c09d415
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,7 @@ schedule:
m_volInfo.vid=tapeMount->getVid();
m_volInfo.mountType=tapeMount->getMountType();
m_volInfo.nbFiles=tapeMount->getNbFiles();
m_volInfo.mountId=tapeMount->getMountTransactionId();
// 2c) ... and log.
// Make the DGN and TPVID parameter permanent.
cta::log::ScopedParamContainer params(lc);
......
......@@ -279,6 +279,8 @@ void castor::tape::tapeserver::daemon::TapeWriteSingleThread::run() {
typedef cta::log::Param Param;
m_watchdog.addParameter(Param("TPVID", m_volInfo.vid));
m_watchdog.addParameter(Param("mountType", mountTypeToString(m_volInfo.mountType)));
m_watchdog.addParameter(Param("mountId", m_volInfo.mountId));
m_watchdog.addParameter(Param("volReqId", m_volInfo.mountId));
// Set the tape thread time in the watchdog for total time estimation in case
// of crash
......
......@@ -45,6 +45,8 @@ namespace daemon {
cta::common::dataStructures::MountType mountType;
/** The number of files currently on tape*/
uint32_t nbFiles;
/** The mount Id */
std::string mountId;
};
} // namespace daemon
......
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