From 096696ea9d8fdacfcbb5e0f187f227c62b65e6c5 Mon Sep 17 00:00:00 2001 From: Justin Abrahms Date: Mon, 8 Jan 2024 12:03:56 -0800 Subject: [PATCH] The gateway should not call initialize_tracing Initializing tracing is the responsibility of a surrounding binary, not library code. --- rust/noosphere-gateway/src/gateway.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/rust/noosphere-gateway/src/gateway.rs b/rust/noosphere-gateway/src/gateway.rs index 587f3585d..d37c5f70f 100644 --- a/rust/noosphere-gateway/src/gateway.rs +++ b/rust/noosphere-gateway/src/gateway.rs @@ -22,7 +22,6 @@ use crate::{ NameSystemConnectionType, }, }; -use noosphere_core::tracing::initialize_tracing; const DEFAULT_BODY_LENGTH_LIMIT: usize = 100 /* MB */ * 1000 * 1000; @@ -48,8 +47,6 @@ impl Gateway { C: HasMutableSphereContext + 'static, S: Storage + 'static, { - initialize_tracing(None); - let mut cors = CorsLayer::new(); if let Some(cors_origin) = cors_origin {