diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-11-13 12:23:32 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-11-13 17:13:52 +0100 |
commit | b6d415913f9927540ab1b7c8c67ac186a5f33a1f (patch) | |
tree | 58bb2f3a1944152b3656b2a1b6740425d24225a2 /src | |
parent | 301e48fac22c1c73201610ef07ff29cf2647c824 (diff) |
Add debug output when creating new Job in database
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/db/models/job.rs | 3 |
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() |