mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
add selective log handle reload
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
0023b09f5b
commit
160f48043e
4 files changed
+21
-8
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ pub(crate) fn init(config: &Config) -> (LogLevelReloadHandles, TracingFlameGuard
|
||||
};
|
||||
|
||||
let (fmt_reload_filter, fmt_reload_handle) = reload::Layer::new(filter_layer.clone());
|
||||
reload_handles.add("format", Box::new(fmt_reload_handle));
|
||||
reload_handles.add("console", Box::new(fmt_reload_handle));
|
||||
|
||||
let subscriber = Registry::default().with(fmt_layer.with_filter(fmt_reload_filter));
|
||||
|
||||
|
||||
Reference in new issue
Block a user