Add clientVersion retrieval and include in task dump reports for improved debugging.
This commit is contained in:
parent
3391591e33
commit
66279d4767
@ -8,6 +8,7 @@
|
||||
#include <QPointer>
|
||||
#include <QProcess>
|
||||
#include <QRegularExpression>
|
||||
#include <QSettings>
|
||||
#include <QStandardPaths>
|
||||
#include <QTextStream>
|
||||
#include <QThread>
|
||||
@ -176,9 +177,14 @@ QString TaskDumpRecorder::buildCaption(const QString &errorMessage) const {
|
||||
head << QStringLiteral("[%1]").arg(m_taskKind.toHtmlEscaped());
|
||||
|
||||
const QString desktopId = SettingsDAO::get("desktop_id");
|
||||
// Версия самого ARC-десктопа (клиента), не банковского приложения.
|
||||
const QString clientVersion =
|
||||
QSettings("config.ini", QSettings::IniFormat).value("common/version").toString();
|
||||
QString body;
|
||||
if (!desktopId.isEmpty())
|
||||
body += QStringLiteral("Desktop: %1\n").arg(desktopId.toHtmlEscaped());
|
||||
if (!clientVersion.isEmpty())
|
||||
body += QStringLiteral("DesktopVersion: %1\n").arg(clientVersion.toHtmlEscaped());
|
||||
body += QStringLiteral("Device: %1").arg(m_adbDeviceIdRaw.toHtmlEscaped());
|
||||
if (!m_meta.androidId.isEmpty())
|
||||
body += QStringLiteral("\nAndroidId: %1").arg(m_meta.androidId.toHtmlEscaped());
|
||||
@ -252,6 +258,9 @@ void TaskDumpRecorder::finishInternal(const QString &errorMessage) {
|
||||
ts.setEncoding(QStringConverter::Utf8);
|
||||
const QString desktopId = SettingsDAO::get("desktop_id");
|
||||
if (!desktopId.isEmpty()) ts << "desktop_id: " << desktopId << "\n";
|
||||
const QString clientVersion =
|
||||
QSettings("config.ini", QSettings::IniFormat).value("common/version").toString();
|
||||
if (!clientVersion.isEmpty()) ts << "desktop_version: " << clientVersion << "\n";
|
||||
ts << "bank: " << m_bank << "\n"
|
||||
<< "task: " << m_taskKind << "\n"
|
||||
<< "device: " << m_adbDeviceIdRaw << "\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user