1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-25 20:44:21 +00:00

Do not log::trace sensitive data

This commit is contained in:
Steffo 2024-07-11 08:28:22 +02:00
parent b8f048b1a3
commit 6c2fb205ab
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -42,11 +42,12 @@ impl Command {
log::trace!("Determining bot commands..."); log::trace!("Determining bot commands...");
let commands = Self::bot_commands(); let commands = Self::bot_commands();
log::trace!("Setting commands on {bot:?}: {commands:#?}"); // This always returns true, for whatever reason
let reply = bot.set_my_commands(commands).await log::trace!("Setting commands: {commands:#?}");
let _ = bot.set_my_commands(commands).await
.context("Impossibile aggiornare l'elenco comandi del bot.")?; .context("Impossibile aggiornare l'elenco comandi del bot.")?;
log::trace!("Setting commands on {bot:?} successful: {reply:#?}"); log::trace!("Setting commands successful!");
Ok(()) Ok(())
} }
} }