admin command to change tracing log level dynamically

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-07 00:13:47 -04:00 committed by June
parent a83da4f17b
commit 7f14c08c34
5 changed files with 142 additions and 26 deletions

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)?,
})
}