Skip to content

Commit 6ed64aa

Browse files
committed
Drop DEBUG_REQUESTS environment variable
This hasn't been used in years, and I'm not sure it would be helpful with current production traffic (concurrent requests can interleave their output). We should be able to build out something more targed with `tracing`.
1 parent 896f7aa commit 6ed64aa

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/middleware.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ pub fn build_middleware(app: Arc<App>, endpoints: RouteBuilder) -> MiddlewareBui
5050
m.add(Debug);
5151
}
5252

53-
if env::var_os("DEBUG_REQUESTS").is_some() {
54-
m.add(DebugRequest);
55-
}
56-
5753
if env::var_os("LOG_CONNECTION_POOL_STATUS").is_some() {
5854
m.add(LogConnectionPoolStatus::new(&app));
5955
}

src/middleware/debug.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl Middleware for Debug {
2222
}
2323

2424
#[derive(Clone, Copy, Debug)]
25-
pub struct DebugRequest;
25+
struct DebugRequest;
2626

2727
impl Middleware for DebugRequest {
2828
fn before(&self, req: &mut dyn RequestExt) -> BeforeResult {

0 commit comments

Comments
 (0)