Skip to content

Commit

Permalink
Use extracted fork
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Aug 25, 2023
1 parent 8f56c50 commit d500de4
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 167 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

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

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
[workspace]
members = [
"dropshot-authorization-header",
"parse-rfd",
"rfd-api",
"rfd-cli",
"rfd-data",
"rfd-model",
"rfd-processor",
"rfd-redirect",
"rfd-sdk",
"parse-rfd",
"slog-tracing-bridge",
"trace-request",
"xtask"
]
Expand Down Expand Up @@ -69,7 +68,7 @@ tokio = "1.25.0"
toml = "0.5.10"
tracing = "0.1.37"
tracing-core = "0.1.30"
tracing-slog = "0.2.0"
tracing-slog = { git = "https://github.com/oxidecomputer/tracing-slog" }
tracing-subscriber = "0.3.16"
uuid = "1.2.2"
valuable = "0.1.0"
Expand Down
2 changes: 1 addition & 1 deletion rfd-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ serde_json = { workspace = true }
serde_urlencoded = { workspace = true }
slog = { workspace = true }
slog-async = { workspace = true }
slog-tracing-bridge = { path = "../slog-tracing-bridge" }
tap = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
toml = { workspace = true }
trace-request = { path = "../trace-request" }
tracing = { workspace = true }
tracing-slog = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter", "fmt", "json"] }
uuid = { workspace = true, features = ["v4", "serde"] }
yup-oauth2 = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions rfd-api/src/server.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use dropshot::{ApiDescription, ConfigDropshot, EndpointTagPolicy, HttpServerStarter, TagConfig, TagDetails};
use serde::Deserialize;
use slog::Drain;
use slog_tracing_bridge::BridgeDrain;
use tracing_slog::TracingSlogDrain;
use std::{error::Error, fs::File, net::SocketAddr, path::PathBuf, collections::HashMap};

use crate::{
Expand Down Expand Up @@ -44,7 +44,7 @@ pub fn server(

// Construct a shim to pipe dropshot logs into the global tracing logger
let dropshot_logger = {
let level_drain = slog::LevelFilter(BridgeDrain, slog::Level::Debug).fuse();
let level_drain = slog::LevelFilter(TracingSlogDrain, slog::Level::Debug).fuse();
let async_drain = slog_async::Async::new(level_drain).build().fuse();
slog::Logger::root(async_drain, slog::o!())
};
Expand Down
2 changes: 1 addition & 1 deletion rfd-redirect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ schemars = { workspace = true }
serde = { workspace = true }
slog = { workspace = true }
slog-async = { workspace = true }
slog-tracing-bridge = { path = "../slog-tracing-bridge" }
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
thiserror = { workspace = true }
tracing = { workspace = true }
tracing-slog = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter", "fmt", "json"] }
4 changes: 2 additions & 2 deletions rfd-redirect/src/server.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use dropshot::{ApiDescription, ConfigDropshot, EndpointTagPolicy, HttpServerStarter, TagConfig};
use slog::Drain;
use slog_tracing_bridge::BridgeDrain;
use tracing_slog::TracingSlogDrain;
use std::{error::Error, net::SocketAddr};

use crate::{
Expand All @@ -21,7 +21,7 @@ pub fn server(

// Construct a shim to pipe dropshot logs into the global tracing logger
let dropshot_logger = {
let level_drain = slog::LevelFilter(BridgeDrain, slog::Level::Debug).fuse();
let level_drain = slog::LevelFilter(TracingSlogDrain, slog::Level::Debug).fuse();
let async_drain = slog_async::Async::new(level_drain).build().fuse();
slog::Logger::root(async_drain, slog::o!())
};
Expand Down
2 changes: 0 additions & 2 deletions slog-tracing-bridge/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions slog-tracing-bridge/Cargo.toml

This file was deleted.

132 changes: 0 additions & 132 deletions slog-tracing-bridge/src/lib.rs

This file was deleted.

0 comments on commit d500de4

Please sign in to comment.