aboutsummaryrefslogtreecommitdiff
path: root/src/db/categories.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/categories.rs')
-rw-r--r--src/db/categories.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/db/categories.rs b/src/db/categories.rs
index 0e2a28c..fafe459 100644
--- a/src/db/categories.rs
+++ b/src/db/categories.rs
@@ -23,7 +23,7 @@ ORDER BY
match res {
Ok(categories) => categories,
Err(err) => {
- error!("Error listing categories: {:?}", err);
+ log::error!("Error listing categories: {:?}", err);
vec![]
}
}
@@ -50,7 +50,7 @@ WHERE
match res {
Ok(p) => Some(p),
Err(err) => {
- error!("Error looking for category {}: {:?}", id, err);
+ log::error!("Error looking for category {}: {:?}", id, err);
None
}
}
@@ -73,7 +73,7 @@ VALUES
match res {
Ok(x) => Some(x.last_insert_rowid()),
Err(err) => {
- error!("Error creating category: {:?}", err);
+ log::error!("Error creating category: {:?}", err);
None
}
}
@@ -101,7 +101,7 @@ WHERE
match res {
Ok(_) => true,
Err(err) => {
- error!("Error updating category {}: {:?}", id, err);
+ log::error!("Error updating category {}: {:?}", id, err);
false
}
}
@@ -125,7 +125,7 @@ WHERE
match res {
Ok(_) => true,
Err(err) => {
- error!("Error deleting category {}: {:?}", id, err);
+ log::error!("Error deleting category {}: {:?}", id, err);
false
}
}