mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
Ref T456, user statistics monitored at backend
* values for simulator/network * changed concept a bit so crash handler values are used for statistics as well
This commit is contained in:
@@ -155,8 +155,8 @@ namespace BlackGui
|
||||
}
|
||||
|
||||
// crashpad info
|
||||
sGui->setCrashInfoUserName(user.getRealNameAndId());
|
||||
sGui->appendCrashInfo(QStringLiteral("Login as user %1 %2").arg(user.getRealNameAndId(), user.getRolesAsString()));
|
||||
sGui->crashAndLogInfoUserName(user.getRealNameAndId());
|
||||
sGui->crashAndLogAppendInfo(QStringLiteral("Login as user %1 %2").arg(user.getRealNameAndId(), user.getRolesAsString()));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/network/entityflags.h"
|
||||
#include "blackmisc/network/serverlist.h"
|
||||
#include "blackmisc/simulation/simulatorinternals.h"
|
||||
#include "blackmisc/simulation/aircraftmodel.h"
|
||||
#include "blackmisc/simulation/simulatedaircraft.h"
|
||||
#include "blackmisc/statusmessage.h"
|
||||
@@ -311,10 +312,10 @@ namespace BlackGui
|
||||
{
|
||||
Q_ASSERT_X(currentServer.isValidForLogin(), Q_FUNC_INFO, "invalid server");
|
||||
static const QString extraInfo("[%1]");
|
||||
sGui->setCrashInfoUserName(currentServer.getUser().getRealNameAndId());
|
||||
sGui->setExtraWindowTitle(extraInfo.arg(ownAircraft.getCallsignAsString()));
|
||||
sGui->appendCrashInfo(currentServer.getServerSessionId());
|
||||
|
||||
sGui->crashAndLogInfoUserName(currentServer.getUser().getRealNameAndId());
|
||||
sGui->crashAndLogInfoFlightNetwork(currentServer.getEcosystem().toQString(true));
|
||||
sGui->crashAndLogAppendInfo(currentServer.getServerSessionId());
|
||||
m_networkSetup.setLastServer(currentServer);
|
||||
m_lastAircraftModel.set(ownAircraft.getModel());
|
||||
ui->le_LoginCallsign->setText(ownAircraft.getCallsignAsString());
|
||||
@@ -517,6 +518,11 @@ namespace BlackGui
|
||||
ui->le_SimulatorModel->setText(modelAndKey);
|
||||
ui->le_SimulatorModel->home(false);
|
||||
this->highlightModelField(model);
|
||||
|
||||
const CSimulatorInfo sim = sGui->getIContextSimulator()->getSimulatorPluginInfo().getSimulator();
|
||||
const CSimulatorInternals simulatorInternals = sGui->getIContextSimulator()->getSimulatorInternals();
|
||||
const QString simStr = sim.toQString() + QStringLiteral(" ") + simulatorInternals.getSimulatorVersion();
|
||||
sGui->crashAndLogInfoSimulator(simStr);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user