Skip to content

Commit 77ef3d8

Browse files
committed
cargo fmt, my opp.
1 parent 2797c97 commit 77ef3d8

File tree

1 file changed

+3
-6
lines changed
  • src/lib/utils/logging/src

1 file changed

+3
-6
lines changed

src/lib/utils/logging/src/lib.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pub mod errors;
33
use ferrumc_general_purpose::paths::get_root_path;
44
use ferrumc_profiling::ProfilerTracingLayer;
55
use tracing::Level;
6-
use tracing_appender::rolling::{Rotation};
6+
use tracing_appender::rolling::Rotation;
77
use tracing_subscriber::fmt::{layer, Layer};
88
use tracing_subscriber::layer::SubscriberExt;
99
use tracing_subscriber::util::SubscriberInitExt;
@@ -15,19 +15,16 @@ pub fn init_logging(trace_level: Level) {
1515

1616
let is_verbose = trace_level > Level::INFO;
1717

18-
1918
let file_layer = {
2019
let file_appender = tracing_appender::rolling::Builder::new()
2120
.rotation(Rotation::DAILY)
2221
.filename_prefix("ferrumc")
2322
.filename_suffix("log.txt")
24-
.build( get_root_path().join("logs"))
23+
.build(get_root_path().join("logs"))
2524
.unwrap();
2625

2726
if is_verbose {
28-
layer()
29-
.with_writer(file_appender)
30-
.with_ansi(false)
27+
layer().with_writer(file_appender).with_ansi(false)
3128
} else {
3229
layer()
3330
.with_ansi(false)

0 commit comments

Comments
 (0)