Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ch83910] Rewrite decoder to fix some decoding bugs #3

Merged
merged 17 commits into from
Sep 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ reqwest = "0.9.11"
tokio-timer = "0.2.11"

[dev-dependencies]
env_logger = "0.7.1"
maplit = "1.0.1"
simplelog = "0.5.3"
tokio = "0.1.16"
9 changes: 9 additions & 0 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Guide to developing rust-eventsource-client

Incomplete.

## Get detailed logging

eventsource-client uses the standard [log crate](https://crates.io/crates/log) for logging. It will log additional detail about the protocol implementation at `trace` level.

e.g. if using [env_logger](https://crates.io/crates/env_logger) (as the example script does), set `RUST_LOG=eventsource_client=trace`.
2 changes: 2 additions & 0 deletions examples/tail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use futures::{future::Future, lazy, stream::Stream};
use eventsource_client as es;

fn main() -> Result<(), es::Error> {
env_logger::init();

let args: Vec<String> = env::args().collect();

if args.len() != 3 {
Expand Down
Loading