mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-19 21:29:52 -07:00
Allow log level to be configured (#58)
This commit is contained in:
parent
db35581d07
commit
14fe916d94
3 changed files with 49 additions and 2 deletions
|
@ -15,7 +15,6 @@ use std::time::Duration;
|
|||
|
||||
use clap::Parser;
|
||||
use tokio::sync::Mutex as AsyncMutex;
|
||||
use tracing::{self, Level};
|
||||
use tracing_subscriber::FmtSubscriber;
|
||||
|
||||
use matrix_sdk::ruma::OwnedUserId;
|
||||
|
@ -534,7 +533,7 @@ fn main() -> IambResult<()> {
|
|||
|
||||
let subscriber = FmtSubscriber::builder()
|
||||
.with_writer(appender)
|
||||
.with_max_level(Level::INFO)
|
||||
.with_max_level(settings.tunables.log_level)
|
||||
.finish();
|
||||
tracing::subscriber::set_global_default(subscriber).expect("setting default subscriber failed");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue