From acd1befde66db492149992199fadca92e55cc97b Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Thu, 6 Apr 2023 21:43:29 -0400 Subject: sentry: Add sentry support Change-Id: I3cff2a05c63e88abddc8eff6a3ee9a9f73a5172d --- src/bot.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/bot.cpp') diff --git a/src/bot.cpp b/src/bot.cpp index ad818a0..d0f6377 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -1,4 +1,5 @@ +#include "sentry.h" #include #include #include @@ -37,7 +38,8 @@ Bot::Bot(bool devel, dpp::cluster* cluster) { * Returns false on any error */ bool Bot::run_database_migrations() { - + sentry_value_t crumb = sentry_value_new_breadcrumb("debug", "Running database migrations"); + sentry_value_set_by_key(crumb, "level", sentry_value_new_string("debug")); // Start a transaction this->core->log(dpp::ll_info, "Attempting database migrations..."); pqxx::work w(this->conn); -- cgit v1.2.3