@@ 5,6 5,7 @@ use color_eyre::{
Section,
};
use serde::{Deserialize, Serialize};
+use tracing::debug;
use crate::{
attempt::{self, Attempt, Conclusion},
@@ 133,17 134,27 @@ impl nouns::Repo for &Storage {
let mut n = self.find_noun_by_id(id)?;
if let Some(x) = article {
+ debug!(
+ "editing article. previous: {:#?}, current: {:#?}",
+ n.articles, x
+ );
n.articles = x;
};
if let Some(x) = word {
+ debug!("editing word. previous: {:#?}, current: {:#?}", n.word, x);
n.word = x;
};
if let Some(x) = meaning {
+ debug!(
+ "editing meaning. previous: {:#?}, current: {:#?}",
+ n.meaning, x
+ );
n.meaning = x;
};
if let Some(x) = group {
+ debug!("editing group. previous: {:#?}, current: {:#?}", n.group, x);
n.group = x;
};