1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +01:00

Use ms precision for logging

This commit is contained in:
Roman Zeyde 2018-07-07 11:02:29 +03:00
parent 53c0c02732
commit 93f1b85cda
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ rust-crypto = "0.2"
serde = "1.0" serde = "1.0"
serde_derive = "1.0" serde_derive = "1.0"
serde_json = "1.0" serde_json = "1.0"
stderrlog = "0.4" stderrlog = "0.4.1"
time = "0.1" time = "0.1"
tiny_http = "0.6" tiny_http = "0.6"
glob = "0.2" glob = "0.2"

View File

@ -68,7 +68,7 @@ impl Config {
let mut log = stderrlog::new(); let mut log = stderrlog::new();
log.verbosity(m.occurrences_of("verbosity") as usize); log.verbosity(m.occurrences_of("verbosity") as usize);
log.timestamp(if m.is_present("timestamp") { log.timestamp(if m.is_present("timestamp") {
stderrlog::Timestamp::Microsecond stderrlog::Timestamp::Millisecond
} else { } else {
stderrlog::Timestamp::Off stderrlog::Timestamp::Off
}); });