Update some log entries

Signed-off-by: trivernis <trivernis@protonmail.com>
main
trivernis 3 years ago
parent 7d4bce06c2
commit 530b9b16e4
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

2
Cargo.lock generated

@ -1091,7 +1091,7 @@ dependencies = [
[[package]] [[package]]
name = "serenity-rich-interaction" name = "serenity-rich-interaction"
version = "0.2.6" version = "0.3.0"
dependencies = [ dependencies = [
"dashmap", "dashmap",
"futures", "futures",

@ -1,6 +1,6 @@
[package] [package]
name = "serenity-rich-interaction" name = "serenity-rich-interaction"
version = "0.2.6" version = "0.3.0"
authors = ["trivernis <trivernis@protonmail.com>"] authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2018" edition = "2018"
description = "Menus and self deleting messages for the serenity discord framework" description = "Menus and self deleting messages for the serenity discord framework"

@ -20,7 +20,7 @@ pub async fn start_update_loop(ctx: &Context) -> Result<()> {
tokio::task::spawn(async move { tokio::task::spawn(async move {
loop { loop {
{ {
tracing::debug!("Updating messages..."); tracing::trace!("Updating messages...");
let mut frozen_messages = Vec::new(); let mut frozen_messages = Vec::new();
for entry in event_messages.iter() { for entry in event_messages.iter() {
@ -35,7 +35,7 @@ pub async fn start_update_loop(ctx: &Context) -> Result<()> {
for key in frozen_messages { for key in frozen_messages {
event_messages.remove(&key); event_messages.remove(&key);
} }
tracing::debug!("Messages updated"); tracing::trace!("Messages updated");
} }
tokio::time::sleep(Duration::from_secs(UPDATE_INTERVAL_SECS)).await; tokio::time::sleep(Duration::from_secs(UPDATE_INTERVAL_SECS)).await;
} }

Loading…
Cancel
Save