From e20356ffdfd5eb6422058de636b4a4d34c912e6b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 29 Dec 2020 19:21:31 +0100 Subject: Replace println!() calls with log::debug!() Signed-off-by: Matthias Beyer --- src/routes/communities.rs | 4 ++-- src/routes/mod.rs | 2 +- src/routes/posts.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/communities.rs b/src/routes/communities.rs index 67d670f..44fc1ec 100644 --- a/src/routes/communities.rs +++ b/src/routes/communities.rs @@ -871,7 +871,7 @@ async fn handler_communities_new_post_submit( Some(lang.tr("post_new_missing_content_type", None).into_owned()); } Some(mime) => { - println!("will upload media"); + log::debug!("will upload media"); let res = res_to_error( ctx.http_client .request(for_client( @@ -906,7 +906,7 @@ async fn handler_communities_new_post_submit( } } - println!("finished media upload"); + log::debug!("finished media upload"); } } } diff --git a/src/routes/mod.rs b/src/routes/mod.rs index 67d3ad4..5affcf9 100644 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -665,7 +665,7 @@ async fn handler_comment_submit_reply( } } - println!("finished media upload"); + log::debug!("finished media upload"); } } } else { diff --git a/src/routes/posts.rs b/src/routes/posts.rs index 100c097..9c3e5b5 100644 --- a/src/routes/posts.rs +++ b/src/routes/posts.rs @@ -522,7 +522,7 @@ async fn handler_post_submit_reply( } } - println!("finished media upload"); + log::debug!("finished media upload"); } } } else { -- cgit v1.2.3