Skip to content
Snippets Groups Projects
Commit 14f7c9fc authored by Steven Murray's avatar Steven Murray
Browse files

The "created RTCPD callback port" log message now includes mountTransactionId and socketFd

parent b1b18e4a
Branches
Tags
No related merge requests found
......@@ -348,7 +348,8 @@ void castor::tape::aggregator::VdqmRequestHandler::exceptionThrowingRun(
utils::SmartFd listenSock(net::createListenerSock("127.0.0.1", lowPort,
highPort, chosenPort));
// Get and log the IP, host name and port of the callback port
// Get and log the IP, host name, port and socket file-descriptor of the
// callback socket
unsigned long rtcpdCallbackIp = 0;
char rtcpdCallbackHost[net::HOSTNAMEBUFLEN];
utils::setBytes(rtcpdCallbackHost, '\0');
......@@ -356,9 +357,11 @@ void castor::tape::aggregator::VdqmRequestHandler::exceptionThrowingRun(
net::getSockIpHostnamePort(listenSock.get(),
rtcpdCallbackIp, rtcpdCallbackHost, rtcpdCallbackPort);
castor::dlf::Param params[] = {
castor::dlf::Param("IP" , castor::dlf::IPAddress(rtcpdCallbackIp)),
castor::dlf::Param("Port" , rtcpdCallbackPort),
castor::dlf::Param("HostName", rtcpdCallbackHost)};
castor::dlf::Param("mountTransactionId", jobRequest.volReqId ),
castor::dlf::Param("IP" , dlf::IPAddress(rtcpdCallbackIp)),
castor::dlf::Param("Port" , rtcpdCallbackPort ),
castor::dlf::Param("HostName" , rtcpdCallbackHost ),
castor::dlf::Param("socketFd" , listenSock.get() )};
castor::dlf::dlf_writep(cuuid, DLF_LVL_SYSTEM,
AGGREGATOR_CREATED_RTCPD_CALLBACK_PORT, params);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment