mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Add seconds and nanoseconds to log output
This commit is contained in:
parent
696fc792e8
commit
988a846c52
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ impl log::Log for Logger {
|
||||||
|
|
||||||
fn log(&self, record: &log::Record<'_>) {
|
fn log(&self, record: &log::Record<'_>) {
|
||||||
if self.enabled(record.metadata()) && record.target().starts_with("alacritty") {
|
if self.enabled(record.metadata()) && record.target().starts_with("alacritty") {
|
||||||
let now = time::strftime("%F %R", &time::now()).unwrap();
|
let now = time::strftime("%F %T.%f", &time::now()).unwrap();
|
||||||
|
|
||||||
let msg = if record.level() >= Level::Trace {
|
let msg = if record.level() >= Level::Trace {
|
||||||
format!(
|
format!(
|
||||||
|
|
Loading…
Reference in a new issue