2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 14:17:45 +00:00

Set some layers crash annotations.

This commit is contained in:
John Preston
2022-09-25 16:17:34 +04:00
parent 43bdfbf170
commit 09a6df1fdc
4 changed files with 11 additions and 2 deletions

View File

@@ -33,6 +33,12 @@ void BaseIntegration::logMessage(const QString &message) {
Logs::writeMain(message); Logs::writeMain(message);
} }
void BaseIntegration::setCrashAnnotation(
const std::string &key,
const QString &value) {
CrashReports::SetAnnotation(key, value);
}
void BaseIntegration::logAssertionViolation(const QString &info) { void BaseIntegration::logAssertionViolation(const QString &info) {
Logs::writeMain("Assertion Failed! " + info); Logs::writeMain("Assertion Failed! " + info);
CrashReports::SetAnnotation("Assertion", info); CrashReports::SetAnnotation("Assertion", info);

View File

@@ -20,6 +20,9 @@ public:
void logMessageDebug(const QString &message) override; void logMessageDebug(const QString &message) override;
void logMessage(const QString &message) override; void logMessage(const QString &message) override;
void logAssertionViolation(const QString &info) override; void logAssertionViolation(const QString &info) override;
void setCrashAnnotation(
const std::string &key,
const QString &value) override;
}; };