aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
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
};