From f416fa8c80cab57aa26bc5c55bb26a9f1e62f248 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 17 Sep 2013 18:17:42 -0400 Subject: remove redundant logging --- client/src/leap/soledad/client/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/src/leap/soledad/client/__init__.py b/client/src/leap/soledad/client/__init__.py index 0976d346..4c6a41fc 100644 --- a/client/src/leap/soledad/client/__init__.py +++ b/client/src/leap/soledad/client/__init__.py @@ -345,8 +345,9 @@ class Soledad(object): lambda x: os.path.dirname(x), [self._local_db_path, self._secrets_path]) for path in paths: - logger.info('Creating directory: %s.' % path) try: + if not os.path.isdir(path): + logger.info('Creating directory: %s.' % path) os.makedirs(path) except OSError as exc: if exc.errno == errno.EEXIST and os.path.isdir(path): -- cgit v1.2.3