aboutsummaryrefslogtreecommitdiff
path: root/src/bot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bot.rs')
-rw-r--r--src/bot.rs20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/bot.rs b/src/bot.rs
index 704d699..2f44ba5 100644
--- a/src/bot.rs
+++ b/src/bot.rs
@@ -502,7 +502,7 @@ pub async fn run() -> anyhow::Result<()> {
loop {
ticker.tick().await;
- tracing::debug!("running songbird info gc");
+ tracing::trace!("running songbird info gc");
let Some(songbird) = ({
let data = client_data.read().await;
@@ -535,11 +535,19 @@ pub async fn run() -> anyhow::Result<()> {
result
});
- tracing::debug!(
- queued_tracks = active_uuids.len(),
- n_gced = n_removed,
- "songbird info gc done"
- );
+ if n_removed > 0 {
+ tracing::debug!(
+ queued_tracks = active_uuids.len(),
+ n_gced = n_removed,
+ "songbird info gc done"
+ );
+ } else {
+ tracing::trace!(
+ queued_tracks = active_uuids.len(),
+ n_gced = n_removed,
+ "songbird info gc done"
+ );
+ }
}
});