summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-02-14 07:35:34 +0000
committerGitHub <noreply@github.com>2020-02-14 10:35:34 +0300
commit988a846c52f381bdd2d211d9dbb4b9bf0f9105e5 (patch)
tree049b251a2100a974696765fba2c6555f145ef625
parent696fc792e833f8d37b184c63ad004651b8bba5ea (diff)
downloadalacritty-988a846c52f381bdd2d211d9dbb4b9bf0f9105e5.tar.gz
alacritty-988a846c52f381bdd2d211d9dbb4b9bf0f9105e5.zip
Add seconds and nanoseconds to log output
-rw-r--r--alacritty/src/logging.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/logging.rs b/alacritty/src/logging.rs
index 86f01ce7..569135ec 100644
--- a/alacritty/src/logging.rs
+++ b/alacritty/src/logging.rs
@@ -85,7 +85,7 @@ impl log::Log for Logger {
fn log(&self, record: &log::Record<'_>) {
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 {
format!(