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:
parent
53c0c02732
commit
93f1b85cda
@ -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"
|
||||||
|
@ -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
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user