From bf50414cc84f40449c3d469c893554de76b52c87 Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 10 Oct 2017 07:53:29 -0300 Subject: [feature] log OS errors when writing blobs --- src/leap/soledad/server/_blobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/leap/soledad/server/_blobs.py b/src/leap/soledad/server/_blobs.py index 427c63ca..e0763028 100644 --- a/src/leap/soledad/server/_blobs.py +++ b/src/leap/soledad/server/_blobs.py @@ -106,8 +106,8 @@ class FilesystemBlobsBackend(object): path = self._get_path(user, blob_id, namespace) try: mkdir_p(os.path.split(path)[0]) - except OSError: - pass + except OSError as e: + logger.warn("Got exception trying to create directory: %r" % e) if os.path.isfile(path): # 409 - Conflict request.setResponseCode(409) -- cgit v1.2.3