Skip to content
Snippets Groups Projects
Commit 9627d71f authored by mvelosob's avatar mvelosob
Browse files

add user info to RequestMessage log context (#607)

parent 70eb2ead
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,8 @@ public:
m_cliIdentity.host = cta::utils::getShortHostname(); // Host should be of the machine that executes the command
m_cliIdentity.clientHost = client.host;
m_lc.pushOrReplace({"user", m_cliIdentity.username + "@" + m_cliIdentity.host});
// Map the client protocol string to an enum value
auto proto_it = m_protomap.find(client.prot);
m_protocol = proto_it != m_protomap.end() ? proto_it->second : Protocol::OTHER;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment