From 46ad2b673fde0011b7ef57a3294bd743f7431e68 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Tue, 8 Feb 2022 21:54:33 +0000 Subject: [PATCH] Add trace! for spawn of a handler --- olivefs/src/filesystem.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/olivefs/src/filesystem.rs b/olivefs/src/filesystem.rs index 20e47e6..6255493 100644 --- a/olivefs/src/filesystem.rs +++ b/olivefs/src/filesystem.rs @@ -4,7 +4,7 @@ use fuser::{ ReplyOpen, ReplyStatfs, ReplyWrite, ReplyXattr, Request, TimeOrNow, }; use libc::{ENOSYS, EPERM, O_APPEND, O_RDONLY, O_RDWR, O_WRONLY}; -use log::{debug, error, warn}; +use log::{debug, error, trace, warn}; use std::collections::HashMap; use std::ffi::OsStr; use std::future::Future; @@ -1359,6 +1359,7 @@ impl OliveFilesystem { where Fut: Future> + Send + 'static, { + trace!("spawn: {:?}", name); self.tokio_runtime.spawn(async move { if let Err(error) = future.await { error!("Error in {}: {:?}", name, error);