From 80cc1ffcfc774da446b9dcf182eefe42c25ac4c9 Mon Sep 17 00:00:00 2001
From: Eric Cano <Eric.Cano@cern.ch>
Date: Thu, 9 May 2019 17:06:57 +0200
Subject: [PATCH] #471 Added logging of activity parameter in frontend.

---
 xroot_plugins/XrdSsiCtaRequestMessage.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/xroot_plugins/XrdSsiCtaRequestMessage.cpp b/xroot_plugins/XrdSsiCtaRequestMessage.cpp
index 5b647afef0..0f5b19a2b3 100644
--- a/xroot_plugins/XrdSsiCtaRequestMessage.cpp
+++ b/xroot_plugins/XrdSsiCtaRequestMessage.cpp
@@ -503,6 +503,10 @@ void RequestMessage::processPREPARE(const cta::eos::Notification &notification,
    // Create a log entry
    cta::log::ScopedParamContainer params(m_lc);
    params.add("fileId", request.archiveFileID).add("schedulerTime", t.secs());
+   try {
+     // Print out the received activity in the logs for the moment.
+     params.add("activity", notification.file().xattr().at("activity"));
+   } catch (...) {}
    m_lc.log(cta::log::INFO, "In RequestMessage::processPREPARE(): queued file for retrieve.");
 
    // Set response type
-- 
GitLab