mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Create crashpad database directory before initializing CrashReportDatabase
This commit is contained in:
committed by
Mathew Sutcliffe
parent
452b2ce0d6
commit
dbcde5bcf5
@@ -1145,6 +1145,7 @@ namespace BlackCore
|
|||||||
annotations["prod"] = executable().toStdString();
|
annotations["prod"] = executable().toStdString();
|
||||||
annotations["ver"] = CVersion::version().toStdString();
|
annotations["ver"] = CVersion::version().toStdString();
|
||||||
|
|
||||||
|
QDir().mkpath(database);
|
||||||
m_crashReportDatabase = CrashReportDatabase::Initialize(qstringToFilePath(database));
|
m_crashReportDatabase = CrashReportDatabase::Initialize(qstringToFilePath(database));
|
||||||
auto settings = m_crashReportDatabase->GetSettings();
|
auto settings = m_crashReportDatabase->GetSettings();
|
||||||
settings->SetUploadsEnabled(CBuildConfig::isReleaseBuild() && m_crashDumpUploadEnabled.getThreadLocal());
|
settings->SetUploadsEnabled(CBuildConfig::isReleaseBuild() && m_crashDumpUploadEnabled.getThreadLocal());
|
||||||
|
|||||||
Reference in New Issue
Block a user