Add trace! for spawn of a handler

This commit is contained in:
Olivier 'reivilibre' 2022-02-08 21:54:33 +00:00
parent 1fb63833c5
commit 46ad2b673f

View File

@ -4,7 +4,7 @@ use fuser::{
ReplyOpen, ReplyStatfs, ReplyWrite, ReplyXattr, Request, TimeOrNow, ReplyOpen, ReplyStatfs, ReplyWrite, ReplyXattr, Request, TimeOrNow,
}; };
use libc::{ENOSYS, EPERM, O_APPEND, O_RDONLY, O_RDWR, O_WRONLY}; 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::collections::HashMap;
use std::ffi::OsStr; use std::ffi::OsStr;
use std::future::Future; use std::future::Future;
@ -1359,6 +1359,7 @@ impl OliveFilesystem {
where where
Fut: Future<Output = anyhow::Result<()>> + Send + 'static, Fut: Future<Output = anyhow::Result<()>> + Send + 'static,
{ {
trace!("spawn: {:?}", name);
self.tokio_runtime.spawn(async move { self.tokio_runtime.spawn(async move {
if let Err(error) = future.await { if let Err(error) = future.await {
error!("Error in {}: {:?}", name, error); error!("Error in {}: {:?}", name, error);