more debugging

This commit is contained in:
Brandon Thomas committed 2023-02-18 01:13:27 -05:00
1 parent eaeb864c1c
commit 582ce9aa93
2 files changed
+6 -2

No files matched your search

@@ -25,7 +25,7 @@ pub struct GetNextNewsStoryAudioFileQuery {
pub audio_cursor: Option<u64>,
}
#[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)?;
@@ -16,7 +16,7 @@ pub struct GetNextNewsStoryQuery {
pub news_story_token: Option<NewsStoryToken>,
}
#[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)?;