From 9b6c942efe9cfa4d18c9309843b8aae306adb148 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sun, 15 Jan 2023 01:47:25 +0100 Subject: [PATCH] change `module_path` to `target` --- src/logging.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logging.rs b/src/logging.rs index 29ff50f..dab105f 100644 --- a/src/logging.rs +++ b/src/logging.rs @@ -24,7 +24,7 @@ pub fn init() { let mut location_line_style = buf.style(); location_line_style.set_dimmed(true); - + writeln!( buf, "{} {:<50}\t{}{}{}", @@ -36,7 +36,7 @@ pub fn init() { Level::Trace => "[t]", }), format!("{}", record.args()), - location_style.value(record.module_path().unwrap_or("")), + location_style.value(record.target()), location_line_style.value(" :"), location_line_style.value(record.line().unwrap_or(0)) )