Commit 452228e6 authored by Kevin Fox's avatar Kevin Fox

Propagate log level to newly loaded link modules

parent 62213728
......@@ -609,12 +609,12 @@ athenaTransportLinkAdapter_Open(AthenaTransportLinkAdapter *athenaTransportLinkA
return NULL;
}
}
athenaTransportLinkModule_SetLogLevel(athenaTransportLinkModule, parcLog_GetLevel(athenaTransportLinkAdapter_GetLogger(athenaTransportLinkAdapter)));
AthenaTransportLink *athenaTransportLink = athenaTransportLinkModule_Open(athenaTransportLinkModule, connectionURI);
if (athenaTransportLink == NULL) {
return NULL;
}
athenaTransportLink_SetLogLevel(athenaTransportLink, parcLog_GetLevel(athenaTransportLinkAdapter->log));
return athenaTransportLink_GetName(athenaTransportLink);
}
......
......@@ -624,6 +624,7 @@ _ETHOpenConnection(AthenaTransportLinkModule *athenaTransportLinkModule, const c
return NULL;
}
athenaTransportLink_SetLogLevel(athenaTransportLink, parcLog_GetLevel(athenaTransportLinkModule_GetLogger(athenaTransportLinkModule)));
_setConnectLinkState(athenaTransportLink, linkData);
// Enable Sends
......@@ -720,6 +721,7 @@ _ETHOpenListener(AthenaTransportLinkModule *athenaTransportLinkModule, const cha
_ETHLinkData_Destroy(&linkData);
return athenaTransportLink;
}
athenaTransportLink_SetLogLevel(athenaTransportLink, parcLog_GetLevel(athenaTransportLinkModule_GetLogger(athenaTransportLinkModule)));
athenaTransportLink_SetPrivateData(athenaTransportLink, linkData);
athenaTransportLink_SetEventFd(athenaTransportLink, athenaEthernet_GetDescriptor(linkData->athenaEthernet));
......
......@@ -505,6 +505,7 @@ _TCPOpenConnection(AthenaTransportLinkModule *athenaTransportLinkModule, const c
return athenaTransportLink;
}
athenaTransportLink_SetLogLevel(athenaTransportLink, parcLog_GetLevel(athenaTransportLinkModule_GetLogger(athenaTransportLinkModule)));
_setConnectLinkState(athenaTransportLink, linkData);
parcLog_Info(athenaTransportLinkModule_GetLogger(athenaTransportLinkModule),
......@@ -657,6 +658,7 @@ _TCPOpenListener(AthenaTransportLinkModule *athenaTransportLinkModule, const cha
return athenaTransportLink;
}
athenaTransportLink_SetLogLevel(athenaTransportLink, parcLog_GetLevel(athenaTransportLinkModule_GetLogger(athenaTransportLinkModule)));
athenaTransportLink_SetPrivateData(athenaTransportLink, linkData);
athenaTransportLink_SetEventFd(athenaTransportLink, linkData->fd);
......
......@@ -284,6 +284,7 @@ _TemplateOpen(AthenaTransportLinkModule *athenaTransportLinkModule, PARCURI *con
return athenaTransportLink;
}
athenaTransportLink_SetLogLevel(athenaTransportLink, parcLog_GetLevel(athenaTransportLinkModule_GetLogger(athenaTransportLinkModule)));
athenaTransportLink_SetPrivateData(athenaTransportLink, linkData);
athenaTransportLink_SetEvent(athenaTransportLink, AthenaTransportLinkEvent_Send);
......
......@@ -697,6 +697,7 @@ _UDPOpenConnection(AthenaTransportLinkModule *athenaTransportLinkModule, const c
return NULL;
}
athenaTransportLink_SetLogLevel(athenaTransportLink, parcLog_GetLevel(athenaTransportLinkModule_GetLogger(athenaTransportLinkModule)));
_setConnectLinkState(athenaTransportLink, linkData);
// Enable Send? XXX
athenaTransportLink_SetEvent(athenaTransportLink, AthenaTransportLinkEvent_Send);
......@@ -810,6 +811,7 @@ _UDPOpenListener(AthenaTransportLinkModule *athenaTransportLinkModule, const cha
return athenaTransportLink;
}
athenaTransportLink_SetLogLevel(athenaTransportLink, parcLog_GetLevel(athenaTransportLinkModule_GetLogger(athenaTransportLinkModule)));
athenaTransportLink_SetPrivateData(athenaTransportLink, linkData);
athenaTransportLink_SetEventFd(athenaTransportLink, linkData->fd);
......
Markdown is supported
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