aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2024-08-16 06:40:25 -0400
committerNathan Perry <np@nathanperry.dev>2024-08-16 06:40:25 -0400
commit5a2dc4070c1d14f22a7671c6f82ca2f4578369bd (patch)
tree4dfa57f42a6cca70f1cac5363b7b547e46318c26 /src/config.rs
parent728d951b87ae9ba15ca1453d24ce9ce618badd5a (diff)
rework logging to use tracing via grate
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/config.rs b/src/config.rs
index 896f82f..046a2be 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1,15 +1,15 @@
use std::path::PathBuf;
+use dotenv::dotenv;
+use envconfig::Envconfig;
+use grate::tracing;
+use lazy_static::lazy_static;
use serenity::model::id::{
ChannelId,
GuildId,
UserId,
};
-use dotenv::dotenv;
-use envconfig::Envconfig;
-use lazy_static::lazy_static;
-
lazy_static! {
pub static ref CONFIG: Config = {
dotenv().ok();
@@ -18,13 +18,13 @@ lazy_static! {
};
pub static ref FFMPEG_COMMAND: String = {
let result = CONFIG.ffmpeg.clone().unwrap_or("ffmpeg".to_owned());
- log::debug!("got ffmpeg: {result}");
+ tracing::debug!("got ffmpeg: {result}");
result
};
pub static ref YTDL_COMMAND: String = {
let result = CONFIG.ytdl.clone().unwrap_or("yt-dlp".to_owned());
- log::debug!("got ytdl: {result}");
+ tracing::debug!("got ytdl: {result}");
result
};