From 582ce9aa93cb0e47a3c3a7f2a6def438eb652e11 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 18 Feb 2023 01:13:27 -0500 Subject: [PATCH] more debugging --- .../news_stories/get_next_news_story_audio_file_handler.rs | 4 +++- .../handlers/news_stories/get_next_news_story_handler.rs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/programs/aichatbot-sidecar/src/web_server/handlers/news_stories/get_next_news_story_audio_file_handler.rs b/crates/programs/aichatbot-sidecar/src/web_server/handlers/news_stories/get_next_news_story_audio_file_handler.rs index 5445dd2c76..df6b2a2e59 100644 --- a/crates/programs/aichatbot-sidecar/src/web_server/handlers/news_stories/get_next_news_story_audio_file_handler.rs +++ b/crates/programs/aichatbot-sidecar/src/web_server/handlers/news_stories/get_next_news_story_audio_file_handler.rs @@ -25,7 +25,7 @@ pub struct GetNextNewsStoryAudioFileQuery { pub audio_cursor: Option, } -#[derive(Serialize)] +#[derive(Serialize, Debug)] pub struct GetNextNewsStoryAudioFileResponse { pub success: bool, pub news_story_token: NewsStoryToken, @@ -156,6 +156,8 @@ pub async fn get_next_news_story_audio_file_handler( maybe_next_cursor, }; + warn!("Response: {:?}", &response); + let body = serde_json::to_string(&response) .map_err(|e| GetNextNewsStoryAudioFileError::ServerError)?; diff --git a/crates/programs/aichatbot-sidecar/src/web_server/handlers/news_stories/get_next_news_story_handler.rs b/crates/programs/aichatbot-sidecar/src/web_server/handlers/news_stories/get_next_news_story_handler.rs index 896d33610d..238c7bf356 100644 --- a/crates/programs/aichatbot-sidecar/src/web_server/handlers/news_stories/get_next_news_story_handler.rs +++ b/crates/programs/aichatbot-sidecar/src/web_server/handlers/news_stories/get_next_news_story_handler.rs @@ -16,7 +16,7 @@ pub struct GetNextNewsStoryQuery { pub news_story_token: Option, } -#[derive(Serialize)] +#[derive(Serialize, Debug)] pub struct GetNextNewsStoryFileResponse { pub success: bool, pub news_story_token: NewsStoryToken, @@ -80,6 +80,8 @@ pub async fn get_next_news_story_handler( audio_total_duration_seconds: story.audio_total_duration_seconds as u64, }; + warn!("Response: {:?}", &response); + let body = serde_json::to_string(&response) .map_err(|e| GetNextNewsStoryFileError::ServerError)?;