mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 02:05:30 +00:00
aquatic_ws: add simple_logger for debugging, need better solution
This commit is contained in:
parent
23e0e0bcd0
commit
7430c23ccc
4 changed files with 36 additions and 1 deletions
32
Cargo.lock
generated
32
Cargo.lock
generated
|
|
@ -112,6 +112,7 @@ dependencies = [
|
|||
"rand",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"simple_logger",
|
||||
"tungstenite",
|
||||
]
|
||||
|
||||
|
|
@ -167,6 +168,17 @@ dependencies = [
|
|||
"toml",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "atty"
|
||||
version = "0.2.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
|
||||
dependencies = [
|
||||
"hermit-abi",
|
||||
"libc",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "autocfg"
|
||||
version = "1.0.0"
|
||||
|
|
@ -507,6 +519,15 @@ dependencies = [
|
|||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "hermit-abi"
|
||||
version = "0.1.13"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "91780f809e750b0a89f5544be56617ff6b1227ee485bcb06ebe10cdf89bd3b71"
|
||||
dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "histogram"
|
||||
version = "0.6.9"
|
||||
|
|
@ -1186,6 +1207,17 @@ dependencies = [
|
|||
"opaque-debug",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "simple_logger"
|
||||
version = "1.6.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fea0c4611f32f4c2bac73754f22dca1f57e6c1945e0590dae4e5f2a077b92367"
|
||||
dependencies = [
|
||||
"atty",
|
||||
"log",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "smallvec"
|
||||
version = "1.4.0"
|
||||
|
|
|
|||
2
TODO.md
2
TODO.md
|
|
@ -4,11 +4,11 @@
|
|||
* ipv4 / ipv6 split state?
|
||||
* network
|
||||
* send/recv buffer size config
|
||||
* limit ws message sizes?
|
||||
* is it even necessary to check if event is readable in poll, since that
|
||||
is all we're listening for?
|
||||
* panic/error in workers: print error, exit program with non-zero exit code
|
||||
* privdrop
|
||||
* add sensible logging method
|
||||
|
||||
## aquatic_udp
|
||||
* mio: set oneshot for epoll and kqueue? otherwise, stop reregistering?
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ parking_lot = "0.10"
|
|||
rand = { version = "0.7", features = ["small_rng"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
simple_logger = { version = "1", default-features = false }
|
||||
tungstenite = "0.10"
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
|||
|
||||
|
||||
fn main(){
|
||||
// ::simple_logger::init().unwrap();
|
||||
|
||||
cli_helpers::run_app_with_cli_and_config::<aquatic_ws::config::Config>(
|
||||
"aquatic: webtorrent tracker",
|
||||
aquatic_ws::run,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue