Skip to content

Commit b65f225

Browse files
Miscellaneous
1 parent 7944c54 commit b65f225

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Daemon/BaseDaemon.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,12 +414,13 @@ extern const char * GIT_HASH;
414414
void BaseDaemon::initializeTerminationAndSignalProcessing()
415415
{
416416
SentryWriter::initializeInstance(config());
417-
if (config().getBool("send_crash_reports.send_logical_errors", false))
417+
if (config().getBool("send_crash_reports.enabled", false)
418+
&& config().getBool("send_crash_reports.send_logical_errors", false))
418419
{
419420
/// In release builds send it to sentry (if it is configured)
420421
if (auto * sentry = SentryWriter::getInstance())
421422
{
422-
LOG_DEBUG(&logger(), "Enable sending logical errors to sentry");
423+
LOG_DEBUG(&logger(), "Sending logical errors to sentry is enabled");
423424
Exception::callback = [sentry](const std::string & msg, int code, bool remote, const Exception::FramePointers & trace)
424425
{
425426
if (!remote && code == ErrorCodes::LOGICAL_ERROR)

0 commit comments

Comments
 (0)