diff --git a/proxmox-log/src/lib.rs b/proxmox-log/src/lib.rs index 26c60f25..f4f24e0c 100644 --- a/proxmox-log/src/lib.rs +++ b/proxmox-log/src/lib.rs @@ -105,7 +105,7 @@ impl LogContext { LOG_CONTEXT.try_with(|ctx| ctx.clone()).ok() } - /// Run a task with a new logger and an initial warn counter of zero. + /// Run a task with this log context. pub fn sync_scope(self, func: F) -> R where F: FnOnce() -> R, @@ -113,7 +113,7 @@ impl LogContext { LOG_CONTEXT.sync_scope(self, func) } - /// Run a task with a new logger and an initial warn counter of zero. + /// Run a task with this log context. pub fn scope(self, f: F) -> TaskLocalFuture where F: Future,