Add trace! for spawn of a handler
This commit is contained in:
parent
1fb63833c5
commit
46ad2b673f
@ -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<Output = anyhow::Result<()>> + Send + 'static,
|
||||
{
|
||||
trace!("spawn: {:?}", name);
|
||||
self.tokio_runtime.spawn(async move {
|
||||
if let Err(error) = future.await {
|
||||
error!("Error in {}: {:?}", name, error);
|
||||
|
Loading…
Reference in New Issue
Block a user