debug logging

This commit is contained in:
Brandon Thomas committed 2024-04-14 01:23:58 -04:00
1 parent 04c9c3cdfc
commit cb4bca73ee
2 files changed
+7

No files matched your search

@@ -1,6 +1,7 @@
use std::marker::PhantomData;
use anyhow::anyhow;
use log::info;
use sqlx;
use sqlx::{Executor, MySql};
@@ -54,6 +55,8 @@ pub async fn insert_prompt<'e, 'c : 'e, E>(args: InsertPromptArgs<'e, 'c, E>)
},
};
info!("maybe other prompt args (json): {:?}", maybe_other_args);
let query = sqlx::query!(
r#"
INSERT INTO prompts
@@ -618,11 +618,15 @@ pub async fn process_job(args: ComfyProcessJobArgs<'_>) -> Result<JobSuccessResu
let mut maybe_other_args = None;
if let Some(style_name) = maybe_style_name {
info!("building PromptInnerPayload with style_name = {:?}", style_name);
maybe_other_args = Some(PromptInnerPayload {
style_name: Some(EncodedStyleTransferName::from_style_name(style_name)),
});
}
info!("maybe other prompt args: {:?}", maybe_other_args);
// NB: Don't fail the job if the query fails.
let prompt_result = insert_prompt(InsertPromptArgs {
maybe_apriori_prompt_token: Some(&prompt_token),