mirror of
https://git.verdigado.com/NB-Public/simple-wkd.git
synced 2024-12-06 14:52:41 +01:00
Improve logger
This commit is contained in:
parent
b717852376
commit
8484febb9d
5 changed files with 154 additions and 43 deletions
|
@ -60,6 +60,10 @@ pub fn key_exists(email: &str) -> Result<bool, Error> {
|
|||
Ok(true)
|
||||
}
|
||||
|
||||
pub fn get_filename(path: &Path) -> Option<&str> {
|
||||
path.file_name()?.to_str()
|
||||
}
|
||||
|
||||
pub fn custom_format(
|
||||
w: &mut dyn std::io::Write,
|
||||
now: &mut DeferredNow,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue