Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
fix: better formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin-Niederman committed Dec 8, 2023
1 parent 3cdcc3a commit b03755a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pros/src/logger.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use core::time::Duration;

use alloc::{format, string::ToString, ffi::CString};
use alloc::{ffi::CString, format, string::ToString};

use log::{Log, Metadata, Record};

Expand Down Expand Up @@ -38,7 +38,7 @@ impl Log for ProsLogger {
chrono::Duration::from_std(Duration::from_millis(unsafe { pros_sys::millis() as _ }))
.unwrap();

let message = format!("{}{} [{}] {}", now, level_string, target, record.args());
let message = format!("{} {} [{}] {}", format!("{}m {}s {}ms", now.num_minutes(), now.num_seconds(), now.num_milliseconds()), level_string, target, record.args());

println!("{}", message);
// Print to the debug teminal
Expand Down

0 comments on commit b03755a

Please sign in to comment.