aboutsummaryrefslogtreecommitdiff
path: root/src/db/categories.rs
diff options
context:
space:
mode:
authorJoris2024-06-02 12:53:20 +0200
committerJoris2024-06-02 12:53:20 +0200
commit0d5ec3626773edb7d32884c594230c7cc03ae0e7 (patch)
tree768b6d6fee0b5409c7a12f5aa7b191a25ca5f2d7 /src/db/categories.rs
parent76a761630a8e6f5686d7e4384948ed949f702f3b (diff)
downloadbudget-main.tar.gz
budget-main.tar.bz2
budget-main.zip
Simplify logging initmain
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
}
}