From 09a6df1fdcbafa8e29e1f4a376c00ddb7d2c983e Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 25 Sep 2022 16:17:34 +0400 Subject: [PATCH] Set some layers crash annotations. --- Telegram/SourceFiles/core/base_integration.cpp | 6 ++++++ Telegram/SourceFiles/core/base_integration.h | 3 +++ Telegram/lib_base | 2 +- Telegram/lib_ui | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/core/base_integration.cpp b/Telegram/SourceFiles/core/base_integration.cpp index 4b3f7e65c..4e794a1a8 100644 --- a/Telegram/SourceFiles/core/base_integration.cpp +++ b/Telegram/SourceFiles/core/base_integration.cpp @@ -33,6 +33,12 @@ void BaseIntegration::logMessage(const QString &message) { Logs::writeMain(message); } +void BaseIntegration::setCrashAnnotation( + const std::string &key, + const QString &value) { + CrashReports::SetAnnotation(key, value); +} + void BaseIntegration::logAssertionViolation(const QString &info) { Logs::writeMain("Assertion Failed! " + info); CrashReports::SetAnnotation("Assertion", info); diff --git a/Telegram/SourceFiles/core/base_integration.h b/Telegram/SourceFiles/core/base_integration.h index b1f50be95..29a4be570 100644 --- a/Telegram/SourceFiles/core/base_integration.h +++ b/Telegram/SourceFiles/core/base_integration.h @@ -20,6 +20,9 @@ public: void logMessageDebug(const QString &message) override; void logMessage(const QString &message) override; void logAssertionViolation(const QString &info) override; + void setCrashAnnotation( + const std::string &key, + const QString &value) override; }; diff --git a/Telegram/lib_base b/Telegram/lib_base index d932f5048..72f9e778b 160000 --- a/Telegram/lib_base +++ b/Telegram/lib_base @@ -1 +1 @@ -Subproject commit d932f5048317b05dd414116741d995c82a528542 +Subproject commit 72f9e778be5503b918d8677c8216360695767835 diff --git a/Telegram/lib_ui b/Telegram/lib_ui index 1ceaa0bbc..14cc3ff52 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit 1ceaa0bbcfccb83dbf7f51d7f80a733ff2aa8c22 +Subproject commit 14cc3ff52b9611cbfde472fd8c12001a9a3ac6ec