mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +00:00
14 lines
298 B
Rust
14 lines
298 B
Rust
pub fn error(e: &anyhow::Error) {
|
|
eprintln!("[{}] [error] {e}", now())
|
|
}
|
|
|
|
pub fn info(message: String) {
|
|
eprintln!("[{}] [info] {message}", now())
|
|
}
|
|
|
|
fn now() -> u128 {
|
|
std::time::SystemTime::now()
|
|
.duration_since(std::time::UNIX_EPOCH)
|
|
.unwrap()
|
|
.as_millis()
|
|
}
|