0
0
Fork 0
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:
Delta1925 2023-04-14 18:55:17 +02:00
parent b717852376
commit 8484febb9d
No known key found for this signature in database
GPG key ID: 1C21ACE44193CB25
5 changed files with 154 additions and 43 deletions

View file

@ -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,