Do not upload minidumps when running unit tests or zone builder.
This commit is contained in:
parent
e18ac7be16
commit
54f21d5a5d
@ -13,7 +13,7 @@ namespace Components
|
||||
BitMessage::BitMessage()
|
||||
{
|
||||
#ifdef DEBUG
|
||||
Logger::Print("Initializing BitMessage...\n");
|
||||
Logger::Print("Initializing BitMessage...\n");
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
|
@ -157,6 +157,7 @@ namespace Components
|
||||
MinidumpUpload::MinidumpUpload()
|
||||
{
|
||||
#if !defined(DEBUG) || defined(FORCE_MINIDUMP_UPLOAD)
|
||||
if (Loader::PerformingUnitTests() || ZoneBuilder::IsEnabled()) return;
|
||||
this->uploadThread = std::thread([&]() { this->UploadQueuedMinidumps(); });
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user