Remove instrumenting log level (#7620)

I think this should resolve #7155


This removes the level field from the instrumenting we were doing across a range of functions. The level will now default to the level of the log.
This commit is contained in:
Age Manning
2025-06-20 17:44:59 +10:00
committed by GitHub
parent f67084a571
commit d50924677a
8 changed files with 3 additions and 9 deletions

View File

@@ -92,7 +92,7 @@ impl TaskExecutor {
/// This function should only be used during testing. In production, prefer to obtain an
/// instance of `Self` via a `environment::RuntimeContext` (see the `lighthouse/environment`
/// crate).
#[instrument(parent = None,level = "info", fields(service = service_name), name = "task_executor", skip_all)]
#[instrument(parent = None,fields(service = service_name), name = "task_executor", skip_all)]
pub fn new<T: Into<HandleProvider>>(
handle: T,
exit: async_channel::Receiver<()>,