aboutsummaryrefslogtreecommitdiff
path: root/src/db/jobs.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/jobs.rs
parent76a761630a8e6f5686d7e4384948ed949f702f3b (diff)
Simplify logging initmain
Diffstat (limited to 'src/db/jobs.rs')
-rw-r--r--src/db/jobs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/jobs.rs b/src/db/jobs.rs
index 3f84fc8..a80ef68 100644
--- a/src/db/jobs.rs
+++ b/src/db/jobs.rs
@@ -28,7 +28,7 @@ WHERE
Ok(_) => true,
Err(Error::RowNotFound) => false,
Err(err) => {
- error!("Error looking if job should run: {:?}", err);
+ log::error!("Error looking if job should run: {:?}", err);
false
}
}
@@ -48,6 +48,6 @@ WHERE
match res {
Ok(_) => (),
- Err(err) => error!("Error actualizing job last execution: {:?}", err),
+ Err(err) => log::error!("Error actualizing job last execution: {:?}", err),
}
}