25 lines
865 B
Diff
25 lines
865 B
Diff
|
diff --git a/src/code_migrations.rs b/src/code_migrations.rs
|
||
|
index c69ce591..b416a299 100644
|
||
|
--- a/src/code_migrations.rs
|
||
|
+++ b/src/code_migrations.rs
|
||
|
@@ -36,7 +36,7 @@ use lemmy_db_schema::{
|
||
|
utils::{get_conn, naive_now, DbPool},
|
||
|
};
|
||
|
use lemmy_utils::{error::LemmyError, settings::structs::Settings};
|
||
|
-use tracing::info;
|
||
|
+use tracing::{debug, info};
|
||
|
use url::Url;
|
||
|
|
||
|
pub async fn run_advanced_migrations(pool: &DbPool, settings: &Settings) -> Result<(), LemmyError> {
|
||
|
@@ -419,7 +419,9 @@ async fn initialize_local_site_2022_10_10(
|
||
|
info!("Running initialize_local_site_2022_10_10");
|
||
|
|
||
|
// Check to see if local_site exists
|
||
|
- if LocalSite::read(pool).await.is_ok() {
|
||
|
+ let local_site = LocalSite::read(pool).await;
|
||
|
+ debug!("local_site: {local_site:?}");
|
||
|
+ if local_site.is_ok() {
|
||
|
return Ok(());
|
||
|
}
|
||
|
info!("No Local Site found, creating it.");
|