mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-08 02:53:25 -08:00
[CrashReporting] Give crash-report logging its own category per review
This commit is contained in:
parent
4d790ff388
commit
9ced9b61ef
3 changed files with 8 additions and 2 deletions
|
|
@ -6,10 +6,13 @@
|
|||
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
#include <QLoggingCategory>
|
||||
#include <QRegularExpression>
|
||||
#include <QUrl>
|
||||
#include <libcockatrice/settings/personal_settings.h>
|
||||
|
||||
Q_LOGGING_CATEGORY(CrashReportLog, "crash_report");
|
||||
|
||||
bool CrashReporter::isReportingEnabled(const QString &dsn, PersonalSettings::CrashReportingMode consentMode)
|
||||
{
|
||||
return !dsn.isEmpty() && consentMode != PersonalSettings::CrashReportingMode::NeverSend;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue