Skip to content

Commit

Permalink
Merge pull request #4 from joonas/fix/GHSA-g98v-hv3f-hcfr
Browse files Browse the repository at this point in the history
fix: Address GHSA-g98v-hv3f-hcfr
  • Loading branch information
joonas authored Mar 29, 2024
2 parents 00adb86 + 1726808 commit ca3527b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 26 deletions.
25 changes: 2 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ async-nats = {workspace = true}
axum = {workspace = true}
axum-server = {workspace = true}
anyhow = {workspace = true}
atty = {workspace = true}
ctrlc = {workspace = true}
futures = {workspace = true}
handlebars = {workspace = true}
Expand Down Expand Up @@ -57,7 +56,6 @@ async-nats = "0.33"
axum = { version = "0.6", features = ["headers"] }
axum-server = { version = "0.4", features = ["tls-rustls"] }
anyhow = "1"
atty = "0.2"
ctrlc = "3"
futures = "0.3"
handlebars = "5.1"
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use opentelemetry::sdk::{
trace::{self, RandomIdGenerator, Sampler},
Resource as OTELResource,
};
use std::io::IsTerminal;
use std::net::SocketAddr;
use std::time::Duration;
use tracing::{error, info};
Expand Down Expand Up @@ -87,7 +88,7 @@ fn configure_tracing(enabled: bool) -> anyhow::Result<()> {
let env_filter_layer = tracing_subscriber::EnvFilter::from_default_env();
let log_layer = tracing_subscriber::fmt::layer()
.with_writer(std::io::stderr)
.with_ansi(atty::is(atty::Stream::Stderr));
.with_ansi(std::io::stderr().is_terminal());

let otel_layer = tracing_opentelemetry::layer().with_tracer(tracer);

Expand Down

0 comments on commit ca3527b

Please sign in to comment.