Skip to content

Commit d9cce65

Browse files
committed
Change to logging instead
1 parent dcbe5fe commit d9cce65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@ pub mod register {
500500
use serenity::builder;
501501
use serenity::model::application::CommandOptionType;
502502
use std::sync::Arc;
503-
504503
pub fn register() -> builder::CreateCommand {
505504
builder::CreateCommand::new("register")
506505
.description("Adds a new user to the database.")
@@ -700,6 +699,7 @@ pub mod rank {
700699
use serenity::model::application::CommandOptionType;
701700
use std::collections::HashSet;
702701
use std::sync::Arc;
702+
use tracing::error;
703703

704704
pub fn register() -> builder::CreateCommand {
705705
CreateCommand::new("rank")

src/riot_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ macro_rules! riot_api {
1313
match result {
1414
Result::Err(mut e) => {
1515
let status_code = { e.status_code().clone() };
16-
println!("Error: {:?}", e);
16+
error!("Error: {:?}", e);
1717
return match status_code {
1818
None => Result::Err(anyhow!(
1919
"{}",

0 commit comments

Comments
 (0)