[CrashReporting] Give crash-report logging its own category per review

This commit is contained in:
Lukas Brübach 2026-10-18 13:10:37 +02:00 • committed by GitHub
parent 4d790ff388
commit 9ced9b61ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View file

@ -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;