Skip to content

Commit

Permalink
feat: use log for binary stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
vidhanio committed Nov 20, 2023
1 parent 7f0e76d commit 16004dd
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 122 deletions.
196 changes: 89 additions & 107 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ once_cell = { version = "1.7.2", default-features = false, features = ["std"] }
poise_macros = { path = "macros", version = "0.5.7" } # remember to update the version on changes!
async-trait = { version = "0.1.48", default-features = false } # various traits
regex = { version = "1.6.0", default-features = false, features = ["std"] } # prefix
tracing = "0.1.40"
tracing = { version = "0.1.40", features = ["log"] }
derivative = "2.2.0"
parking_lot = "0.12.1"

Expand All @@ -28,7 +28,7 @@ version = "0.11.5"
# For the examples
tokio = { version = "1.25.1", features = ["rt-multi-thread"] }
futures = { version = "0.3.13", default-features = false }
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
env_logger = "0.3.29"
fluent = "0.16.0"
intl-memoizer = "0.5.1"
fluent-syntax = "0.11"
Expand Down
5 changes: 1 addition & 4 deletions examples/basic_structure/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ mod commands;

use poise::serenity_prelude as serenity;
use std::{collections::HashMap, env::var, sync::Mutex, time::Duration};
use tracing_subscriber::EnvFilter;

// Types used by all command functions
type Error = Box<dyn std::error::Error + Send + Sync>;
Expand Down Expand Up @@ -34,9 +33,7 @@ async fn on_error(error: poise::FrameworkError<'_, Data, Error>) {

#[tokio::main]
async fn main() {
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env())
.init();
env_logger::init();

// FrameworkOptions contains all of poise's configuration option in one struct
// Every option can be omitted to use its default value
Expand Down
Loading

0 comments on commit 16004dd

Please sign in to comment.