aboutsummaryrefslogtreecommitdiff
path: root/src/bot.cpp
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2023-04-06 21:43:29 -0400
committerCara Salter <cara@devcara.com>2023-04-06 21:43:29 -0400
commitacd1befde66db492149992199fadca92e55cc97b (patch)
tree16251d96cd8efd5323fa8f095bb29f110030f387 /src/bot.cpp
parent555810bedc0cf9d9d954f56b5a2c8c92522ad27f (diff)
download142bot-acd1befde66db492149992199fadca92e55cc97b.tar.gz
142bot-acd1befde66db492149992199fadca92e55cc97b.zip
sentry: Add sentry support
Change-Id: I3cff2a05c63e88abddc8eff6a3ee9a9f73a5172d
Diffstat (limited to 'src/bot.cpp')
-rw-r--r--src/bot.cpp4
1 files changed, 3 insertions, 1 deletions
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 <dpp/snowflake.h>
#include <stdlib.h>
#include <string>
@@ -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);