mirror of
https://github.com/mikedilger/gossip.git
synced 2024-10-01 09:21:53 +00:00
fix: restore debug logging
This commit is contained in:
parent
8b2e8bd4e5
commit
4f57ad26f5
22
Cargo.lock
generated
22
Cargo.lock
generated
@ -2108,6 +2108,15 @@ dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "matchers"
|
||||
version = "0.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558"
|
||||
dependencies = [
|
||||
"regex-automata",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "matches"
|
||||
version = "0.1.9"
|
||||
@ -2869,6 +2878,15 @@ dependencies = [
|
||||
"regex-syntax",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "regex-automata"
|
||||
version = "0.1.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"
|
||||
dependencies = [
|
||||
"regex-syntax",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "regex-syntax"
|
||||
version = "0.6.28"
|
||||
@ -3786,10 +3804,14 @@ version = "0.3.16"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a6176eae26dd70d0c919749377897b54a9276bd7061339665dd68777926b5a70"
|
||||
dependencies = [
|
||||
"matchers",
|
||||
"nu-ansi-term",
|
||||
"once_cell",
|
||||
"regex",
|
||||
"sharded-slab",
|
||||
"smallvec",
|
||||
"thread_local",
|
||||
"tracing",
|
||||
"tracing-core",
|
||||
"tracing-log",
|
||||
]
|
||||
|
@ -32,7 +32,7 @@ textnonce = "1.0"
|
||||
thiserror = "1.0"
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.3"
|
||||
tracing-subscriber = { version = "0.3", features = [ "std", "env-filter" ] }
|
||||
tokio-tungstenite = { version = "0.17", features = [ "rustls-tls-native-roots" ] }
|
||||
tungstenite = { version = "0.17", features = [ "rustls-tls-native-roots" ] }
|
||||
zeroize = "1.5"
|
||||
|
@ -20,12 +20,14 @@ use crate::error::Error;
|
||||
use crate::globals::GLOBALS;
|
||||
use std::ops::DerefMut;
|
||||
use std::{mem, thread};
|
||||
use tracing_subscriber::filter::EnvFilter;
|
||||
|
||||
fn main() -> Result<(), Error> {
|
||||
tracing_subscriber::fmt::fmt()
|
||||
.without_time()
|
||||
.with_file(cfg!(debug_assertions))
|
||||
.with_line_number(cfg!(debug_assertions))
|
||||
.with_env_filter(EnvFilter::from_default_env())
|
||||
.init();
|
||||
|
||||
// Setup the database (possibly create, possibly upgrade)
|
||||
|
Loading…
Reference in New Issue
Block a user