mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +00:00
initial commit
This commit is contained in:
parent
9fcd892d42
commit
d55c642eb6
11 changed files with 305 additions and 1 deletions
19
src/debug.rs
Normal file
19
src/debug.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
pub fn error(e: &anyhow::Error) {
|
||||
eprintln!(
|
||||
"[{}] [error] {e}",
|
||||
std::time::SystemTime::now()
|
||||
.duration_since(std::time::UNIX_EPOCH)
|
||||
.unwrap()
|
||||
.as_millis()
|
||||
)
|
||||
}
|
||||
|
||||
pub fn info(message: String) {
|
||||
eprintln!(
|
||||
"[{}] [info] {message}",
|
||||
std::time::SystemTime::now()
|
||||
.duration_since(std::time::UNIX_EPOCH)
|
||||
.unwrap()
|
||||
.as_millis()
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue