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:
@@ -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);
|
||||||
|
@@ -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;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Submodule Telegram/lib_base updated: d932f50483...72f9e778be
Submodule Telegram/lib_ui updated: 1ceaa0bbcf...14cc3ff52b
Reference in New Issue
Block a user