Skip to content
Snippets Groups Projects
Commit f9de49ac authored by Thibault Allançon's avatar Thibault Allançon
Browse files

fuse: use debug level instead of error when returning ENOENT

Closes T2723.
parent e8cb3c6d
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,7 @@ class Fuse(pyfuse3.Operations):
next_id += 1
self._inode2entry[attrs.st_ino] = entry
except Exception as err:
logging.error(f"Cannot readdir: {err}")
logging.debug(f"Cannot readdir: {err}")
raise pyfuse3.FUSEError(errno.ENOENT)
async def open(
......@@ -212,7 +212,7 @@ class Fuse(pyfuse3.Operations):
data = await entry.get_content()
return data[offset : offset + length]
except Exception as err:
logging.error(f"Cannot read: {err}")
logging.debug(f"Cannot read: {err}")
raise pyfuse3.FUSEError(errno.ENOENT)
async def lookup(
......@@ -230,7 +230,7 @@ class Fuse(pyfuse3.Operations):
else:
raise ValueError(f"unknown name: {name}")
except Exception as err:
logging.error(f"Cannot lookup: {err}")
logging.debug(f"Cannot lookup: {err}")
raise pyfuse3.FUSEError(errno.ENOENT)
async def readlink(self, inode: int, _ctx: pyfuse3.RequestContext) -> bytes:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment