From 0c97baabb6f4409746a8a5558a2c97922c30c0ad Mon Sep 17 00:00:00 2001 From: jellywx Date: Wed, 12 May 2021 14:07:09 +0100 Subject: [PATCH] added some extra logging --- src/framework.rs | 9 ++++++++- src/main.rs | 2 -- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/framework.rs b/src/framework.rs index 4fce3fb..9ebc923 100644 --- a/src/framework.rs +++ b/src/framework.rs @@ -287,8 +287,13 @@ impl Framework for RegexFramework { let member = guild.member(&ctx, &msg.author).await.unwrap(); + info!( + "Starting permission check for {} ({})", + command.name, msg.content + ); + if command.check_permissions(&ctx, &guild, &member).await { - dbg!(command.name); + info!("Check on {} ({}) passed", command.name, msg.content); (command.func)( &ctx, @@ -305,6 +310,8 @@ impl Framework for RegexFramework { .say(&ctx, "You must be an Admin to do this command") .await; } + + info!("Finished executing {} ({})", command.name, msg.content); } PermissionCheck::None => { diff --git a/src/main.rs b/src/main.rs index 95f3aa2..2492ddc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,6 @@ #[macro_use] extern crate lazy_static; -extern crate reqwest; - mod error; mod event_handlers; mod framework;