Skip to content

Commit

Permalink
Remove spdlog sentry sink
Browse files Browse the repository at this point in the history
This corrupts the data

Contribute to CURA-11482
  • Loading branch information
jellespijker committed Jan 11, 2024
1 parent 5edc396 commit a315a1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 42 deletions.
33 changes: 0 additions & 33 deletions include/utils/sentry_sink.h

This file was deleted.

10 changes: 1 addition & 9 deletions src/Application.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023 UltiMaker
// Copyright (c) 2024 UltiMaker
// CuraEngine is released under the terms of the AGPLv3 or higher

#include "Application.h"
Expand All @@ -24,9 +24,6 @@
#include "plugins/slots.h"
#include "progress/Progress.h"
#include "utils/ThreadPool.h"
#ifdef SENTRY_URL
#include "utils/sentry_sink.h"
#endif
#include "utils/string.h" //For stringcasecompare.

namespace cura
Expand All @@ -39,11 +36,6 @@ Application::Application()
auto base_sink = std::make_shared<spdlog::sinks::stdout_color_sink_mt>();
dup_sink->add_sink(base_sink);

#ifdef SENTRY_URL
auto sentry_sink = std::make_shared<SentryBreadcrumbSink_mt>();
dup_sink->add_sink(sentry_sink);
#endif

spdlog::default_logger()->sinks()
= std::vector<std::shared_ptr<spdlog::sinks::sink>>{ dup_sink }; // replace default_logger sinks with the duplicating filtering sink to avoid spamming

Expand Down

0 comments on commit a315a1c

Please sign in to comment.