fixed error off-by-one once and for all, and more restructuring+a load more to go until Im happy with it (aka never)

This commit is contained in:
Noah Santschi-Cooney 2022-11-27 18:08:53 +00:00
parent 786e09bdcf
commit e7221304da
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48
29 changed files with 1319 additions and 1128 deletions

View file

@ -15,7 +15,7 @@ pub use slog_scope_futures::FutureExt;
pub fn new_trace_id() -> String {
let rng = CURRENT_RNG.with(|rng| rng.borrow_mut().gen::<[u8; 4]>());
return format!("{:04x}", u32::from_be_bytes(rng));
format!("{:04x}", u32::from_be_bytes(rng))
}
pub fn set_level(level: Level) -> GlobalLoggerGuard {