mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 11:01:35 +00:00
more debugging
This commit is contained in:
1 parent
eaeb864c1c
commit
582ce9aa93
2 files changed
+6
-2
No files matched your search
+3
-1
@@ -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)?;
|
||||
|
||||
|
||||
+3
-1
@@ -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)?;
|
||||
|
||||
|
||||
Reference in new issue
Block a user