mirror of
https://github.com/katanemo/plano.git
synced 2026-05-21 13:55:15 +02:00
fix: restore config load log and state merge JSON payload
This commit is contained in:
parent
bcb7f60005
commit
084f23744a
2 changed files with 2 additions and 0 deletions
|
|
@ -321,6 +321,7 @@ async fn run_server(state: Arc<AppState>) -> Result<(), Box<dyn std::error::Erro
|
||||||
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||||
let config = load_config()?;
|
let config = load_config()?;
|
||||||
let _tracer_provider = init_tracer(config.tracing.as_ref());
|
let _tracer_provider = init_tracer(config.tracing.as_ref());
|
||||||
|
info!("loaded plano_config.yaml");
|
||||||
let state = Arc::new(init_app_state(&config).await?);
|
let state = Arc::new(init_app_state(&config).await?);
|
||||||
run_server(state).await
|
run_server(state).await
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -92,6 +92,7 @@ pub trait StateStorage: Send + Sync {
|
||||||
prev_items = prev_count,
|
prev_items = prev_count,
|
||||||
current_items = current_count,
|
current_items = current_count,
|
||||||
total_items = combined_input.len(),
|
total_items = combined_input.len(),
|
||||||
|
combined_json = %serde_json::to_string(&combined_input).unwrap_or_else(|_| "serialization_error".to_string()),
|
||||||
"merged conversation state"
|
"merged conversation state"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue