Skip to content

Commit

Permalink
Add build arch to crash report
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed Jan 5, 2021
1 parent ab045ec commit e6a2c42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/crashhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <QProcess>
#include <QPushButton>
#include <QStandardPaths>
#include <QSysInfo>
#include <QTextEdit>
#include <QUrlQuery>
#include <QVBoxLayout>
Expand Down Expand Up @@ -106,7 +107,7 @@ QDialog::DialogCode askUserConfirmation( const QString& formattedReport, const Q
exploreButton->setText( "Open report directory" );
exploreButton->setFlat( true );
QObject::connect( exploreButton.get(), &QPushButton::clicked,
[&reportPath] { showPathInFileExplorer( reportPath ); } );
[ &reportPath ] { showPathInFileExplorer( reportPath ); } );

auto privacyLayout = std::make_unique<QHBoxLayout>();
privacyLayout->addWidget( privacyPolicy.release() );
Expand Down Expand Up @@ -265,6 +266,7 @@ CrashHandler::CrashHandler()

sentry_set_tag( "commit", kloggCommit().data() );
sentry_set_tag( "qt", qVersion() );
sentry_set_tag( "build_arch", QSysInfo::buildCpuArchitecture().toLatin1().data() );

auto totalMemory = std::to_string( physicalMemory() );
LOG( logINFO ) << "Physical memory " << totalMemory;
Expand Down

0 comments on commit e6a2c42

Please sign in to comment.