diff options
Diffstat (limited to 'src/debug.rs')
-rw-r--r-- | src/debug.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/debug.rs b/src/debug.rs index 8be5bb9..17ed604 100644 --- a/src/debug.rs +++ b/src/debug.rs @@ -5,6 +5,7 @@ use std::time::Instant; const NORMAL: &str = "\x1b[0m"; +const BOLD: &str = "\x1b[1m"; const DIM: &str = "\x1b[2m"; const YELLOW: &str = "\x1b[33m"; const BLUE: &str = "\x1b[34m"; @@ -27,9 +28,9 @@ impl DebugState { } } - pub fn print(&self, string: &str) { + pub fn info(&self, string: &str) { if self.enabled { - println!("{}", string); + eprintln!("{BOLD}{BLUE}[INFO]{NORMAL}: {string}{NORMAL}"); } } |