From 23ee479062a85a665e57a89b453835e135d6c9d1 Mon Sep 17 00:00:00 2001
From: strawberry <strawberry@puppygock.gay>
Date: Fri, 22 Mar 2024 20:17:38 -0400
Subject: [PATCH] only allow up to info level logging on release builds

Signed-off-by: strawberry <strawberry@puppygock.gay>
---
 Cargo.toml             | 2 ++
 conduwuit-example.toml | 1 +
 2 files changed, 3 insertions(+)

diff --git a/Cargo.toml b/Cargo.toml
index ba47ba896..390a0f867 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -153,6 +153,8 @@ features = [
 [dependencies.tracing]
 version = "0.1.40"
 default-features = false
+features = ["max_level_trace", "release_max_level_info"]
+
 [dependencies.tracing-subscriber]
 version = "0.3.18"
 features = ["env-filter"]
diff --git a/conduwuit-example.toml b/conduwuit-example.toml
index c75e867de..513820b4c 100644
--- a/conduwuit-example.toml
+++ b/conduwuit-example.toml
@@ -218,6 +218,7 @@ url_preview_check_root_domain = false
 
 # max log level for conduwuit. allows debug, info, warn, or error
 # see also: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives
+# For release builds, the maximum log level for conduwuit is info. For debug builds, it is "trace".
 # Defaults to "warn"
 #log = "warn"
 
-- 
GitLab