apply log level filter to file

This commit is contained in:
Nikita Galaiko 2023-09-08 09:25:29 +02:00 committed by GitButler
parent 8367174b38
commit 489f64fffc

View File

@ -49,7 +49,8 @@ pub fn init(app_handle: &AppHandle) {
tracing_subscriber::fmt::layer()
.event_format(format_for_humans)
.with_span_events(FmtSpan::NEW | FmtSpan::CLOSE)
.with_writer(file_writer),
.with_writer(file_writer)
.with_filter(log_level_filter),
);
set_global_default(subscriber).expect("failed to set subscriber");