changed log directory path and removed error counter #301

This commit is contained in:
DustInDark
2021-12-20 00:44:31 +09:00
parent 49c08ddbc9
commit 8798de6839

View File

@@ -41,10 +41,9 @@ lazy_static! {
pub static ref MESSAGES: Mutex<Message> = Mutex::new(Message::new()); pub static ref MESSAGES: Mutex<Message> = Mutex::new(Message::new());
pub static ref ALIASREGEX: Regex = Regex::new(r"%[a-zA-Z0-9-_]+%").unwrap(); pub static ref ALIASREGEX: Regex = Regex::new(r"%[a-zA-Z0-9-_]+%").unwrap();
pub static ref ERROR_LOG_PATH: String = format!( pub static ref ERROR_LOG_PATH: String = format!(
"./hayabusa-logs/errorlog-{}.log", "./logs/errorlog-{}.log",
Local::now().format("%Y%m%d_%H%M%S") Local::now().format("%Y%m%d_%H%M%S")
); );
pub static ref ALERT_COUNT_IN_ERROR_LOG: Mutex<Counter> = Mutex::new(Counter::new());
} }
#[derive(Copy, Clone)] #[derive(Copy, Clone)]