summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/db')
-rw-r--r--src/db/models/job.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/models/job.rs b/src/db/models/job.rs
index f910ed3..fd3b862 100644
--- a/src/db/models/job.rs
+++ b/src/db/models/job.rs
@@ -21,7 +21,7 @@ pub struct Job {
pub log_text: String,
}
-#[derive(Insertable)]
+#[derive(Debug, Insertable)]
#[table_name="jobs"]
struct NewJob<'a> {
pub submit_id: i32,
@@ -53,6 +53,7 @@ impl Job {
log_text: log,
};
+ trace!("Creating Job in database: {:?}", new_job);
diesel::insert_into(jobs::table)
.values(&new_job)
.on_conflict_do_nothing()