From 0d5ec3626773edb7d32884c594230c7cc03ae0e7 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 2 Jun 2024 12:53:20 +0200 Subject: Simplify logging init --- src/db/categories.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/db/categories.rs') 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 } } -- cgit v1.2.3