[model-gateway] fix logs in smg workflow (#14513)

This commit is contained in:
Simo Lin
2025-12-05 12:50:50 -08:00
committed by GitHub
parent aed835e32d
commit 09376fd738
+3 -3
View File
@@ -23,13 +23,13 @@ impl WorkflowStateStore {
/// Save workflow state /// Save workflow state
/// ///
/// # Warning /// # Note
/// ///
/// This emits a warning if the workflow context contains unserializable data, /// This emits a debug log if the workflow context contains unserializable data,
/// which would be lost if state persistence is later implemented. /// which would be lost if state persistence is later implemented.
pub fn save(&self, state: WorkflowState) -> WorkflowResult<()> { pub fn save(&self, state: WorkflowState) -> WorkflowResult<()> {
if state.context.has_unserializable_data() { if state.context.has_unserializable_data() {
tracing::warn!( tracing::debug!(
instance_id = %state.instance_id, instance_id = %state.instance_id,
data_count = state.context.data_len(), data_count = state.context.data_len(),
"Saving workflow state with {} unserializable context entries. \ "Saving workflow state with {} unserializable context entries. \