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()
|
BitMessage::BitMessage()
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
Logger::Print("Initializing BitMessage...\n");
|
Logger::Print("Initializing BitMessage...\n");
|
||||||
#endif // DEBUG
|
#endif // DEBUG
|
||||||
|
|
||||||
|
|
||||||
|
@ -157,6 +157,7 @@ namespace Components
|
|||||||
MinidumpUpload::MinidumpUpload()
|
MinidumpUpload::MinidumpUpload()
|
||||||
{
|
{
|
||||||
#if !defined(DEBUG) || defined(FORCE_MINIDUMP_UPLOAD)
|
#if !defined(DEBUG) || defined(FORCE_MINIDUMP_UPLOAD)
|
||||||
|
if (Loader::PerformingUnitTests() || ZoneBuilder::IsEnabled()) return;
|
||||||
this->uploadThread = std::thread([&]() { this->UploadQueuedMinidumps(); });
|
this->uploadThread = std::thread([&]() { this->UploadQueuedMinidumps(); });
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user