[ARVADOS] updated: e93775274287d344ca325dab430e5d04f283361c
git at public.curoverse.com
git at public.curoverse.com
Thu Jun 26 13:51:17 EDT 2014
Summary of changes:
services/fuse/arvados_fuse/__init__.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
via e93775274287d344ca325dab430e5d04f283361c (commit)
from 6449106742aa47e1ec729e28e4b858e25dbeea4f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit e93775274287d344ca325dab430e5d04f283361c
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Thu Jun 26 13:51:14 2014 -0400
Fixed logging statements to format correctly.
diff --git a/services/fuse/arvados_fuse/__init__.py b/services/fuse/arvados_fuse/__init__.py
index ad3d8e7..a5e9271 100644
--- a/services/fuse/arvados_fuse/__init__.py
+++ b/services/fuse/arvados_fuse/__init__.py
@@ -226,7 +226,7 @@ class MagicDirectory(Directory):
else:
return False
except Exception as e:
- logging.debug('arv-mount exception keep', e)
+ logging.debug('arv-mount exception keep %s', e)
return False
def __getitem__(self, item):
@@ -421,7 +421,7 @@ class Operations(llfuse.Operations):
super(Operations, self).__init__()
if debug:
- logging.setLevel(logging.DEBUG)
+ logging.basicConfig(level=logging.DEBUG)
logging.info("arv-mount debug enabled")
self.inodes = Inodes()
@@ -480,7 +480,7 @@ class Operations(llfuse.Operations):
return entry
def lookup(self, parent_inode, name):
- logging.debug("arv-mount lookup: parent_inode", parent_inode, "name", name)
+ logging.debug("arv-mount lookup: parent_inode %i name %s", parent_inode, name)
inode = None
if name == '.':
@@ -516,7 +516,7 @@ class Operations(llfuse.Operations):
return fh
def read(self, fh, off, size):
- logging.debug("arv-mount read", fh, off, size)
+ logging.debug("arv-mount read %i %i %i", fh, off, size)
if fh in self._filehandles:
handle = self._filehandles[fh]
else:
@@ -533,7 +533,7 @@ class Operations(llfuse.Operations):
del self._filehandles[fh]
def opendir(self, inode):
- logging.debug("arv-mount opendir: inode", inode)
+ logging.debug("arv-mount opendir: inode %i", inode)
if inode in self.inodes:
p = self.inodes[inode]
@@ -554,14 +554,14 @@ class Operations(llfuse.Operations):
return fh
def readdir(self, fh, off):
- logging.debug("arv-mount readdir: fh", fh, "off", off)
+ logging.debug("arv-mount readdir: fh %i off %i", fh, off)
if fh in self._filehandles:
handle = self._filehandles[fh]
else:
raise llfuse.FUSEError(errno.EBADF)
- logging.debug("arv-mount handle.entry", handle.entry)
+ logging.debug("arv-mount handle.entry %s", handle.entry)
e = off
while e < len(handle.entry):
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list