mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-22 11:04:21 +00:00
Do not log::trace sensitive data
This commit is contained in:
parent
b8f048b1a3
commit
6c2fb205ab
1 changed files with 4 additions and 3 deletions
|
@ -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(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue