1
0
Fork 0

Make the startup logging more informative.

ycs232-kbc
Jonathan Naylor 4 years ago
parent 556e6c9366
commit 98feb0b485

@ -245,7 +245,7 @@ int CDGIdGateway::run()
dgIdNetwork[dgid]->m_rfHangTime = rfHangTime; dgIdNetwork[dgid]->m_rfHangTime = rfHangTime;
dgIdNetwork[dgid]->m_netHangTime = netHangTime; dgIdNetwork[dgid]->m_netHangTime = netHangTime;
LogMessage("Added FCS:%s to DG-ID %u", name.c_str(), dgid); LogMessage("Added FCS:%s to DG-ID %u%s", name.c_str(), dgid, statc ? " (Static)" : "");
} else if (type == "YSF") { } else if (type == "YSF") {
std::string name = (*it)->m_name; std::string name = (*it)->m_name;
unsigned int local = (*it)->m_local; unsigned int local = (*it)->m_local;
@ -258,7 +258,7 @@ int CDGIdGateway::run()
dgIdNetwork[dgid]->m_rfHangTime = rfHangTime; dgIdNetwork[dgid]->m_rfHangTime = rfHangTime;
dgIdNetwork[dgid]->m_netHangTime = netHangTime; dgIdNetwork[dgid]->m_netHangTime = netHangTime;
LogMessage("Added YSF:%s to DG-ID %u", name.c_str(), dgid); LogMessage("Added YSF:%s to DG-ID %u%s", name.c_str(), dgid, statc ? " (Static)" : "");
} else { } else {
LogWarning("Unknown YSF reflector: %s", name.c_str()); LogWarning("Unknown YSF reflector: %s", name.c_str());
} }
@ -279,7 +279,7 @@ int CDGIdGateway::run()
dgIdNetwork[dgid]->m_rfHangTime = rfHangTime; dgIdNetwork[dgid]->m_rfHangTime = rfHangTime;
dgIdNetwork[dgid]->m_netHangTime = netHangTime; dgIdNetwork[dgid]->m_netHangTime = netHangTime;
LogMessage("Added YCS:%s:%u to DG-ID %u", name.c_str(), (*it)->m_netDGId, dgid); LogMessage("Added YCS:%s:%u to DG-ID %u%s", name.c_str(), (*it)->m_netDGId, dgid, statc ? " (Static)" : "");
} }
else { else {
LogWarning("Unknown YCS reflector: %s", name.c_str()); LogWarning("Unknown YCS reflector: %s", name.c_str());
@ -299,8 +299,6 @@ int CDGIdGateway::run()
dest->m_addr = addr; dest->m_addr = addr;
dest->m_addrLen = addrLen; dest->m_addrLen = addrLen;
dests.push_back(dest); dests.push_back(dest);
LogMessage("Added IMRS:%s to DG-ID %u", name.c_str(), dgid);
} else { } else {
LogWarning("Unable to resolve the address for %s", (*it)->m_address.c_str()); LogWarning("Unable to resolve the address for %s", (*it)->m_address.c_str());
} }
@ -313,6 +311,8 @@ int CDGIdGateway::run()
dgIdNetwork[dgid]->m_static = true; dgIdNetwork[dgid]->m_static = true;
dgIdNetwork[dgid]->m_rfHangTime = rfHangTime; dgIdNetwork[dgid]->m_rfHangTime = rfHangTime;
dgIdNetwork[dgid]->m_netHangTime = netHangTime; dgIdNetwork[dgid]->m_netHangTime = netHangTime;
LogMessage("Added IMRS:%s to DG-ID %u%s", name.c_str(), dgid, statc ? " (Static)" : "");
} }
} else if (type == "Parrot") { } else if (type == "Parrot") {
unsigned int local = (*it)->m_local; unsigned int local = (*it)->m_local;
@ -326,7 +326,7 @@ int CDGIdGateway::run()
dgIdNetwork[dgid]->m_rfHangTime = rfHangTime; dgIdNetwork[dgid]->m_rfHangTime = rfHangTime;
dgIdNetwork[dgid]->m_netHangTime = netHangTime; dgIdNetwork[dgid]->m_netHangTime = netHangTime;
LogMessage("Added Parrot to DG-ID %u", dgid); LogMessage("Added Parrot to DG-ID %u%s", dgid, statc ? " (Static)" : "");
} else { } else {
LogWarning("Unable to resolve the address for the YSF Parrot"); LogWarning("Unable to resolve the address for the YSF Parrot");
} }
@ -342,7 +342,7 @@ int CDGIdGateway::run()
dgIdNetwork[dgid]->m_rfHangTime = rfHangTime; dgIdNetwork[dgid]->m_rfHangTime = rfHangTime;
dgIdNetwork[dgid]->m_netHangTime = netHangTime; dgIdNetwork[dgid]->m_netHangTime = netHangTime;
LogMessage("Added YSF2DMR to DG-ID %u", dgid); LogMessage("Added YSF2DMR to DG-ID %u%s", dgid, statc ? " (Static)" : "");
} else { } else {
LogWarning("Unable to resolve the address for YSF2DMR"); LogWarning("Unable to resolve the address for YSF2DMR");
} }
@ -358,7 +358,7 @@ int CDGIdGateway::run()
dgIdNetwork[dgid]->m_rfHangTime = rfHangTime; dgIdNetwork[dgid]->m_rfHangTime = rfHangTime;
dgIdNetwork[dgid]->m_netHangTime = netHangTime; dgIdNetwork[dgid]->m_netHangTime = netHangTime;
LogMessage("Added YSF2NXDN to DG-ID %u", dgid); LogMessage("Added YSF2NXDN to DG-ID %u%s", dgid, statc ? " (Static)" : "");
} else { } else {
LogWarning("Unable to resolve the address for YSF2NXDN"); LogWarning("Unable to resolve the address for YSF2NXDN");
} }
@ -374,7 +374,7 @@ int CDGIdGateway::run()
dgIdNetwork[dgid]->m_rfHangTime = rfHangTime; dgIdNetwork[dgid]->m_rfHangTime = rfHangTime;
dgIdNetwork[dgid]->m_netHangTime = netHangTime; dgIdNetwork[dgid]->m_netHangTime = netHangTime;
LogMessage("Added YSF2P25 to DG-ID %u", dgid); LogMessage("Added YSF2P25 to DG-ID %u%s", dgid, statc ? " (Static)" : "");
} else { } else {
LogWarning("Unable to resolve the address for YSF2P25"); LogWarning("Unable to resolve the address for YSF2P25");
} }

Loading…
Cancel
Save