set logging level based on build type

This commit is contained in:
bain 2024-06-02 14:51:45 +02:00
parent 2b69e03c03
commit 987748159a
Signed by: bain
GPG key ID: 31F0F25E3BED0B9B

View file

@ -538,6 +538,10 @@ pub struct Authorization {
#[async_std::main] #[async_std::main]
async fn main() -> Result<()> { async fn main() -> Result<()> {
#[cfg(debug_assertions)]
log::with_level(log::LevelFilter::Debug);
#[cfg(not(debug_assertions))]
log::with_level(log::LevelFilter::Error); log::with_level(log::LevelFilter::Error);
let mut conf_file = let mut conf_file =