mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +00:00
use shared namespace
This commit is contained in:
parent
45473762cb
commit
58c2e6e108
1 changed files with 6 additions and 4 deletions
10
src/debug.rs
10
src/debug.rs
|
|
@ -1,8 +1,10 @@
|
|||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
|
||||
pub fn error(e: &anyhow::Error) {
|
||||
eprintln!(
|
||||
"[{}] [error] {e}",
|
||||
std::time::SystemTime::now()
|
||||
.duration_since(std::time::UNIX_EPOCH)
|
||||
SystemTime::now()
|
||||
.duration_since(UNIX_EPOCH)
|
||||
.unwrap()
|
||||
.as_millis()
|
||||
)
|
||||
|
|
@ -11,8 +13,8 @@ pub fn error(e: &anyhow::Error) {
|
|||
pub fn info(message: String) {
|
||||
eprintln!(
|
||||
"[{}] [info] {message}",
|
||||
std::time::SystemTime::now()
|
||||
.duration_since(std::time::UNIX_EPOCH)
|
||||
SystemTime::now()
|
||||
.duration_since(UNIX_EPOCH)
|
||||
.unwrap()
|
||||
.as_millis()
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue