Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Capture migration errors in Sentry #1156

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/bleep/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{path::Path, sync::Arc};

use anyhow::{Context, Result};
use sqlx::SqlitePool;
use tracing::{debug, warn};
use tracing::{debug, error};

use crate::Configuration;

Expand All @@ -22,7 +22,7 @@ pub async fn initialize(config: &Configuration) -> Result<SqlitePool> {
Ok(pool)
}
Err(e) => {
warn!(?e, "error while migrating, recreating database...");
error!(?e, "error while migrating, recreating database...");

reset(&data_dir)?;
debug!("reset complete");
Expand Down