diff --git a/include/utils/sentry_sink.h b/include/utils/sentry_sink.h deleted file mode 100644 index faf8a7a935..0000000000 --- a/include/utils/sentry_sink.h +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2024 UltiMaker -// CuraEngine is released under the terms of the AGPLv3 or higher - -#ifndef CURAENGINE_INCLUDE_UTILS_SENTRY_SINK_H -#define CURAENGINE_INCLUDE_UTILS_SENTRY_SINK_H - -#include - -#include -#include - -template -class SentryBreadcrumbSink : public spdlog::sinks::base_sink -{ -protected: - void sink_it_(const spdlog::details::log_msg& msg) override - { - sentry_value_t crumb = sentry_value_new_breadcrumb("debug", msg.payload.data()); - sentry_value_set_by_key(crumb, "category", sentry_value_new_string(msg.logger_name.data())); - sentry_value_set_by_key(crumb, "level", sentry_value_new_string(spdlog::level::to_string_view(msg.level).data())); - sentry_add_breadcrumb(crumb); - } - void flush_() override - { - // The sink doesn't buffer or cache anything, so there's nothing to flush - } -}; - -// Convenience typedefs -using SentryBreadcrumbSink_mt = SentryBreadcrumbSink; -using SentryBreadcrumbSink_st = SentryBreadcrumbSink; - -#endif // CURAENGINE_INCLUDE_UTILS_SENTRY_SINK_H diff --git a/src/Application.cpp b/src/Application.cpp index 23e599cd96..db6d7b4c2c 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -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" @@ -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 @@ -39,11 +36,6 @@ Application::Application() auto base_sink = std::make_shared(); dup_sink->add_sink(base_sink); -#ifdef SENTRY_URL - auto sentry_sink = std::make_shared(); - dup_sink->add_sink(sentry_sink); -#endif - spdlog::default_logger()->sinks() = std::vector>{ dup_sink }; // replace default_logger sinks with the duplicating filtering sink to avoid spamming