From 852e184b89ac6a6ed5511d0c85a70fb5f2b6dc97 Mon Sep 17 00:00:00 2001 From: Jonas_Jones <91549607+JonasunderscoreJones@users.noreply.github.com> Date: Sun, 28 Jan 2024 03:38:11 +0100 Subject: [PATCH] removed console spam --- src/v1/update/mod.rs | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/v1/update/mod.rs b/src/v1/update/mod.rs index ffa3153..15a7f01 100644 --- a/src/v1/update/mod.rs +++ b/src/v1/update/mod.rs @@ -161,11 +161,12 @@ fn run_kcomebacks_command() -> Result<(), std::io::Error> { child.wait().unwrap(); }); - task::spawn(async move { - while let Some(line) = rx.recv().await { - Logger::info(&format!("[/v1/kcomebacks/update]: {}", line)); - } - }); + // task::spawn(async move { + // while let Some(line) = rx.recv().await { + // Logger::info(&format!("[/v1/kcomebacks/update]: {}", line)); + // } + // }); + Logger::info("kcomebacks updated"); Ok(()) } @@ -200,11 +201,12 @@ fn run_projects_command() -> Result<(), std::io::Error> { child.wait().unwrap(); }); - task::spawn(async move { - while let Some(line) = rx.recv().await { - Logger::info(&format!("[/v1/projects/update]: {}", line)); - } - }); + // task::spawn(async move { + // while let Some(line) = rx.recv().await { + // Logger::info(&format!("[/v1/projects/update]: {}", line)); + // } + // }); + Logger::info("projects updated"); Ok(()) } @@ -238,11 +240,12 @@ fn run_likedsongs_command() -> Result<(), std::io::Error> { child.wait().unwrap(); }); - task::spawn(async move { - while let Some(line) = rx.recv().await { - Logger::info(&format!("[/v1/synclikedsongs]: {}", line)); - } - }); + // task::spawn(async move { + // while let Some(line) = rx.recv().await { + // Logger::info(&format!("[/v1/synclikedsongs]: {}", line)); + // } + // }); + Logger::info("liked songs synced"); Ok(()) } \ No newline at end of file