1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00

Enable timestamps in the logger

This commit is contained in:
Wez Furlong 2020-02-14 09:46:19 -08:00
parent 754f8166b5
commit 1357a7f25a
3 changed files with 28 additions and 5 deletions

29
Cargo.lock generated
View File

@ -767,6 +767,19 @@ dependencies = [
"termcolor",
]
[[package]]
name = "env_logger"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36"
dependencies = [
"atty",
"humantime",
"log",
"regex",
"termcolor",
]
[[package]]
name = "euclid"
version = "0.20.7"
@ -2101,7 +2114,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "717ee476b1690853d222af4634056d830b5197ffd747726a9a1eee6da9f49074"
dependencies = [
"chrono",
"env_logger",
"env_logger 0.6.2",
"log",
]
[[package]]
name = "pretty_env_logger"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "926d36b9553851b8b0005f1275891b392ee4d2d833852c417ed025477350fb9d"
dependencies = [
"env_logger 0.7.1",
"log",
]
@ -3431,7 +3454,7 @@ dependencies = [
"openssl",
"palette",
"portable-pty",
"pretty_env_logger",
"pretty_env_logger 0.4.0",
"promise",
"rangeset",
"ratelimit_meter",
@ -3532,7 +3555,7 @@ dependencies = [
"mio-extras",
"objc",
"palette",
"pretty_env_logger",
"pretty_env_logger 0.3.1",
"promise",
"resize",
"smithay-client-toolkit",

View File

@ -26,7 +26,7 @@ dirs = "1.0"
downcast-rs = "1.0"
euclid = "0.20"
filedescriptor = { version="0.7", path = "filedescriptor" }
pretty_env_logger = "0.3"
pretty_env_logger = "0.4"
failure = "0.1"
failure_derive = "0.1"
freetype = { path = "deps/freetype" }

View File

@ -721,7 +721,7 @@ fn run() -> anyhow::Result<()> {
)?;
}
};
pretty_env_logger::init();
pretty_env_logger::init_timed();
stats::Stats::init()?;
let _saver = umask::UmaskSaver::new();