From 5a2dc4070c1d14f22a7671c6f82ca2f4578369bd Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 16 Aug 2024 06:40:25 -0400 Subject: rework logging to use tracing via grate --- src/config.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/config.rs') 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 }; -- cgit v1.3.1