This commit is contained in:
2026-04-15 12:56:00 -06:00
parent ff3419a714
commit 63b6678e73
82 changed files with 14800 additions and 3310 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
use crate::config::Config;
use crate::config::paths;
use colored::Colorize;
use fancy_regex::Regex;
use std::fs::File;
@@ -7,7 +7,7 @@ use std::process;
pub async fn tail_logs(no_color: bool) {
let re = Regex::new(r"^(?P<timestamp>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3})\s+<(?P<opid>[^\s>]+)>\s+\[(?P<level>[A-Z]+)\]\s+(?P<logger>[^:]+):(?P<line>\d+)\s+-\s+(?P<message>.*)$").unwrap();
let file_path = Config::log_path();
let file_path = paths::log_path();
let file = File::open(&file_path).expect("Cannot open file");
let mut reader = BufReader::new(file);