Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
@@ -120,7 +120,7 @@ bool MainHandler::init(int domainId, int exerciseId)
|
||||
|
||||
if (m_interfaces.empty())
|
||||
{
|
||||
WARNING_LOG() << "Could not load any training area plugin - can not send data to training area";
|
||||
WARNING_LOG(m_logger) << "Could not load any training area plugin - can not send data to training area";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -131,15 +131,15 @@ bool MainHandler::init(int domainId, int exerciseId)
|
||||
|
||||
|
||||
m_handlerWebSocket = std::make_shared<WebSocketInterface::WebSocketInterfaceHandler>(this);
|
||||
DEBUG_LOG() << "Reset WebSocketInterfaceHandler successful.";
|
||||
DEBUG_LOG(m_logger) << "Reset WebSocketInterfaceHandler successful.";
|
||||
|
||||
if (!m_handlerWebSocket->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation WebSocketInterfaceHandler failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation WebSocketInterfaceHandler failed.";
|
||||
return false;
|
||||
}
|
||||
m_ddsHandler->pacemaker()->addPort(m_handlerWebSocket->serverWebSocketPort(), Core::PortType::WebSocketServer, QStringLiteral("{\"id\":\"TAB\"}"));
|
||||
DEBUG_LOG() << "Initialisation WebSocketInterfaceHandler successful.";
|
||||
DEBUG_LOG(m_logger) << "Initialisation WebSocketInterfaceHandler successful.";
|
||||
|
||||
|
||||
m_ddsHandler->pacemaker()->setNewState(Core::RunningState::Running);
|
||||
@@ -173,19 +173,19 @@ ProjectDataManagement::RadioGroup MainHandler::exerciseRadioGroup() const
|
||||
|
||||
bool MainHandler::loadPlugin(const LtsPluginManager::PluginInstance &pi)
|
||||
{
|
||||
INFO_LOG() << "Trying to load plugin '" << pi.fullFileName << "'";
|
||||
INFO_LOG(m_logger) << "Trying to load plugin '" << pi.fullFileName << "'";
|
||||
Plugin::Plugin *tabPlugin = qobject_cast<Plugin::Plugin *>(pi.plugin);
|
||||
if (!tabPlugin)
|
||||
{
|
||||
WARNING_LOG() << "failed loading a training area plugin - not a TrainingAreaPlugin object!";
|
||||
WARNING_LOG(m_logger) << "failed loading a training area plugin - not a TrainingAreaPlugin object!";
|
||||
return false;
|
||||
}
|
||||
INFO_LOG() << "... success";
|
||||
INFO_LOG(m_logger) << "... success";
|
||||
std::shared_ptr<Plugin::Interface> ifc = tabPlugin->createInterface(this, m_rxHandler, m_txHandler, m_ddsHandler, Settings::settings());
|
||||
|
||||
if (!ifc || !ifc->init())
|
||||
{
|
||||
WARNING_LOG() << "Could not initialize training area plugin" << pi.pluginName << pi.fileName;
|
||||
WARNING_LOG(m_logger) << "Could not initialize training area plugin" << pi.pluginName << pi.fileName;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -241,7 +241,7 @@ TetraIcd::ExerciseEquipmentAssignmentComplete MainHandler::exerciseEquipmentAssi
|
||||
const ProjectDataManagement::RadioGroup rg = radioGroups.value(it.second);
|
||||
if (rg.id() == 0)
|
||||
{
|
||||
WARNING_LOG() << "Got a radio group id " << it.second << " for exercise " << it.first
|
||||
WARNING_LOG(m_logger) << "Got a radio group id " << it.second << " for exercise " << it.first
|
||||
<< " but could not find valid data for it - ignoring!";
|
||||
continue;
|
||||
}
|
||||
@@ -316,7 +316,7 @@ void MainHandler::onConnectionState(const QString &name, bool connectionState)
|
||||
m_ifcConnectionState.insert(name, connectionState);
|
||||
}
|
||||
|
||||
DEBUG_LOG() << "Publishing connection states: " << m_ifcConnectionState.size();
|
||||
DEBUG_LOG(m_logger) << "Publishing connection states: " << m_ifcConnectionState.size();
|
||||
|
||||
TrainingAreaBase::Connections connections;
|
||||
connections.id(1);
|
||||
@@ -329,7 +329,7 @@ void MainHandler::onConnectionState(const QString &name, bool connectionState)
|
||||
|
||||
void MainHandler::onDirectMessage(const QByteArray &jsonMessage)
|
||||
{
|
||||
DEBUG_LOG() << "Got direct message " << jsonMessage;
|
||||
DEBUG_LOG(m_logger) << "Got direct message " << jsonMessage;
|
||||
WebSocketInterface::Messages::BiteDataMessage::BiteData biteData;
|
||||
|
||||
QJsonObject obj = QJsonDocument::fromJson(jsonMessage).object();
|
||||
|
||||
Reference in new issue
Block a user