admin command to change tracing log level dynamically

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry authored and June committed 2024-04-09 15:26:45 -04:00
1 parent a83da4f17b
commit 7f14c08c34
5 files changed
+142 -26

No files matched your search

+5 -1
View File
@@ -56,6 +56,10 @@ impl Services<'_> {
+ 'static,
>(
db: &'static D, config: &Config,
tracing_reload_handle: tracing_subscriber::reload::Handle<
tracing_subscriber::EnvFilter,
tracing_subscriber::Registry,
>,
) -> Result<Self> {
Ok(Self {
appservice: appservice::Service::build(db)?,
@@ -166,7 +170,7 @@ impl Services<'_> {
},
sending: sending::Service::build(db, config),
globals: globals::Service::load(db, config)?,
globals: globals::Service::load(db, config, tracing_reload_handle)?,
})
}